From: Nick Downing Date: Tue, 25 Jan 2022 07:00:37 +0000 (+1100) Subject: Send style option to SASS to produce minified CSS output X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=54e37bad11c2e14a20498a6d5d3a776cdd1aa829;p=sass_css_cache.git Send style option to SASS to produce minified CSS output --- diff --git a/SassCSSCache.js b/SassCSSCache.js index 43ceb0d..8c7ee9f 100644 --- a/SassCSSCache.js +++ b/SassCSSCache.js @@ -47,7 +47,7 @@ SassCSSCache.prototype.build = async function(key, result) { async temp_pathname => { let render = await sass.compileAsync( key, - {loadPaths: [path.posix.dirname(key)]} + {loadPaths: [path.posix.dirname(key)], style: 'compressed'} ) await fs_writeFile( temp_pathname,