mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-17 21:24:59 +00:00
fix kleur thing
This commit is contained in:
@@ -268,12 +268,12 @@ async function _build(
|
|||||||
|
|
||||||
oncompile: event => {
|
oncompile: event => {
|
||||||
let banner = `built ${event.type}`;
|
let banner = `built ${event.type}`;
|
||||||
let c = colors.cyan;
|
let c = (txt: string) => colors.cyan(txt);
|
||||||
|
|
||||||
const { warnings } = event.result;
|
const { warnings } = event.result;
|
||||||
if (warnings.length > 0) {
|
if (warnings.length > 0) {
|
||||||
banner += ` with ${warnings.length} ${warnings.length === 1 ? 'warning' : 'warnings'}`;
|
banner += ` with ${warnings.length} ${warnings.length === 1 ? 'warning' : 'warnings'}`;
|
||||||
c = colors.yellow;
|
c = (txt: string) => colors.cyan(txt);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log();
|
console.log();
|
||||||
|
|||||||
Reference in New Issue
Block a user