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:
14
build/utils/message.js
Normal file
14
build/utils/message.js
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user