Closed julian-fullcrum closed 2 years ago
@julian-fullcrum this does not smell like a rails/webpacker issue. Are you on the latest master? If not, first try that.
Next...
https://github.com/rails/webpacker/blob/master/package/rules/sass.js#L3-L16
and
https://github.com/rails/webpacker/blob/master/package/utils/get_style_rule.js#L2-L37
Have all the configuration for sass.
Can you try to customize the sass setting and debug what's causing your issue?
@julian-fullcrum let's reopen if you find that this issue is caused by rails/webpacker.
Problem Statement
css-loader as part of the default webpacker configuration is not able to interpret quotes in scss files, for example If any of my scss files contains a single (') or double (") quote, webpack throws an
Unclosed string
Error.If I try to import a .scss file with this instruction
or declarate a new font-family variable (with quotes):
webpacker:compile
throws anCssSyntaxError: Unclosed string
Configuration
This is my
base.js
configuration:And these are the versions of libraries in the project: