Created
May 9, 2019 05:41
-
-
Save anthonycoffey/9341ff6e624042d61c744a1734f967a3 to your computer and use it in GitHub Desktop.
Webpack Config to use SCSS Preloader with Vue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
module: { | |
rules: [ | |
// ... other rules omitted | |
// this will apply to both plain `.scss` files | |
// AND `<style lang="scss">` blocks in `.vue` files | |
{ | |
test: /\.scss$/, | |
use: [ | |
'vue-style-loader', | |
'css-loader', | |
'sass-loader' | |
] | |
} | |
] | |
}, | |
// plugin omitted | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment