-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Description
I recently updated connect-assets from 3.0.2 to 5.0.1 and all asset compilation has broken.
The error I am seeing is:
CssSyntaxError: [CsswringCompressor] <css input>:1:1: Unknown word (in /home/dima/dev/copthis/copthis-website/node_modules/node-bourbon/assets/stylesheets/_bourbon.scss)
// Settings
^
@import "settings/prefixer";
at Input.error (/home/dima/dev/copthis/copthis-website/node_modules/connect-assets/node_modules/csswring/node_modules/postcss/lib/input.js:65:21)
at Parser.word (/home/dima/dev/copthis/copthis-website/node_modules/connect-assets/node_modules/csswring/node_modules/postcss/lib/parser.js:184:30)
at Parser.loop (/home/dima/dev/copthis/copthis-website/node_modules/connect-assets/node_modules/csswring/node_modules/postcss/lib/parser.js:61:26)
at Object.parse [as default] (/home/dima/dev/copthis/copthis-website/node_modules/connect-assets/node_modules/csswring/node_modules/postcss/lib/parse.js:21:12)
at new LazyResult (/home/dima/dev/copthis/copthis-website/node_modules/connect-assets/node_modules/csswring/node_modules/postcss/lib/lazy-result.js:54:42)
at Processor.process (/home/dima/dev/copthis/copthis-website/node_modules/connect-assets/node_modules/csswring/node_modules/postcss/lib/processor.js:30:16)
at CSSWring.wring (/home/dima/dev/copthis/copthis-website/node_modules/connect-assets/node_modules/csswring/lib/csswring.js:559:38)
at Function.csswring.wring (/home/dima/dev/copthis/copthis-website/node_modules/connect-assets/node_modules/csswring/lib/csswring.js:572:25)
at CsswringCompressor.compile (/home/dima/dev/copthis/copthis-website/node_modules/connect-assets/node_modules/mincer/lib/mincer/compressors/csswring_compressor.js:50:23)
at CsswringCompressor.evaluate (/home/dima/dev/copthis/copthis-website/node_modules/connect-assets/node_modules/mincer/lib/mincer/compressors/csswring_compressor.js:64:17)
This only happens with compression enabled.
For some reason the postcss parser seems to be having an issue with the comments in the _bourbon.scss file.
I'm not sure if this is a connect-assets/mincer/csswring/postcss issue.
Metadata
Metadata
Assignees
Labels
No labels