Update tasks - remove gulp (replaced by node scripts, working with mconfig) + esbuild (no more es5 support) + add critical css in config file

This commit is contained in:
Quentin Hocdé
2020-11-27 16:01:54 -05:00
parent e686689b52
commit 2e7bb3b482
24 changed files with 7076 additions and 97 deletions

14
build/utils/message.js Normal file
View File

@@ -0,0 +1,14 @@
// colors reference : https://coderwall.com/p/yphywg/printing-colorful-text-in-terminal-when-run-node-js-script
export default function message(text, type) {
if(type === 'success') {
console.log(`\x1b[42m \x1b[30m`, `${text}`, `\x1b[0m`);
} else if (type === 'error') {
console.log(`\x1b[41m \x1b[37m`,`🚨 ${text}`, `\x1b[0m`);
} else if (type === 'waiting') {
console.log(`\x1b[43m \x1b[30m`,`${text}`, `\x1b[0m`);
} else {
console.log(text);
}
}