Open absiddiqueLive opened 6 years ago
Hello @absiddiqueLive,
First of all I think you can remove the config.module.rules.push({ /* ... */ })
that you added in your webpack.config.js
. It should not be needed since you also call addSassLoader
(you'd end up with the same thing twice) and it is not used if you export Encore.getWebpackConfig()
afterwards anyway.
I'm not sure to understand exactly the issue you are having, did you try following the instructions from Bootswatch's documentation? It should work fine if everything is imported in the right order:
@import "~bootswatch/dist/flatly/variables";
@import "~bootstrap/scss/bootstrap";
@import "~bootswatch/dist/flatly/bootswatch";
If it still doesn't work, maybe try renaming your app.css
file to app.scss
.
package.json
webpack.config.js
assets/js/app.js
1st assets/css/app.css working
2nd assets/css/app.css not working
Result
3rd assets/css/app.css not working
Result
Yarn Status