diff --git a/lib/css.js b/lib/css.js index d7fe897..e0a36fe 100644 --- a/lib/css.js +++ b/lib/css.js @@ -13,11 +13,11 @@ async function minifyCss(str, data) { const path = data.path const { exclude, globOptions, verbose } = options - options.returnPromise = true if (isMatch(path, exclude, globOptions)) return str try { + console.log(path) const styles = await new CleanCSS(options).minify(str).styles if (verbose) logFn.call(this, str, styles, path, 'css') return styles @@ -36,7 +36,6 @@ function minifyCssWithMap() { /** @type {{ exclude: string[] }} */ const { exclude, globOptions, verbose } = options const include = ['*.css', ...exclude.map(x => `!${x}`)] - options.returnPromise = true const cleanCSS = new CleanCSS(options) return Promise.all((match(routeList, include, globOptions)).map(path => {