I'm using fusebox in an Angular App and I use scss files instead of regular css.
My plugins are configured like this:
plugins: [
[SassPlugin(), CSSPlugin()],
CSSPlugin(),
Ng2TemplatePlugin()
]
Ng2TemplatePlugin is used to be able to transform stylesUrl and templateUrl to regular style and template with require.
Now, one of the scss I use is importing some other scss file.
@import '../styles/globals';
.app {
height: 100vh;
display: flex;
flex-direction: column;
}
When I check my bundled app.js I see this:
___scope___.file("app/app.component.scss", function(exports, require, module, __filename, __dirname){
@import '../styles/globals';
.app {
height: 100vh;
display: flex;
flex-direction: column;
}
});
As far as I know, fusebox should have imported ../styles/globals and appended here instead of the @import, but it didn“t, and I get an error now when loading my app.
I thought SassPlugin was supposed to do exactly that.
Thanks