You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data directive here appends any styles in _config.scss in EVERY css file it processes. Additionally, if _config.scss@imports any other styles, they are also appended. This is how css-loader works -- and there is no way around it.
The next version of react-toolbox will get rid of sass in favor of postcss so this configuration will no longer be needed. Meanwhile I think it should be possible to write two different loader configurations for webpack. One looking for react-toolbox assets and another for your custom. Then I'm quite sure you can reference the sassLoader configuration injecting the variables only for react toolbox stylesheets.
In
webpack.config.js
we have something like this:The
data
directive here appends any styles in_config.scss
in EVERY css file it processes. Additionally, if_config.scss
@import
s any other styles, they are also appended. This is howcss-loader
works -- and there is no way around it.Please have a look at this issue:
webpack-contrib/css-loader#17
Is there a solution for this?
The text was updated successfully, but these errors were encountered: