Closed NathanWailes closed 5 years ago
Hi, Please try this:
const path = require("path");
module.exports = {
outputDir: path.resolve(__dirname, "../server/templates/SPA"),
assetsDir: "../../static/SPA",
pluginOptions: {
'style-resources-loader': {
'preProcessor':'scss',
'patterns': [
path.resolve(__dirname, './src/assets/themes.scss'),
]
}
}
}
That worked, thank you!
I tried using this package to import an SCSS themes file into all my single-file components but I kept getting a syntax error that looked like it was trying to import my SCSS file into my
main.js
file. When I switched to just use thestyle-resources-loader
code found here it worked fine.Here's the code that's working fine:
Here's the code that wasn't working:
Here's my
package.json
: