Send style option to SASS to produce minified CSS output master
authorNick Downing <nick@ndcode.org>
Tue, 25 Jan 2022 07:00:37 +0000 (18:00 +1100)
committerNick Downing <nick@ndcode.org>
Tue, 25 Jan 2022 07:00:37 +0000 (18:00 +1100)
SassCSSCache.js

index 43ceb0d..8c7ee9f 100644 (file)
@@ -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,