Skip to content

Instantly share code, notes, and snippets.

@anthonycoffey
Created May 9, 2019 05:41
Show Gist options
  • Save anthonycoffey/9341ff6e624042d61c744a1734f967a3 to your computer and use it in GitHub Desktop.
Save anthonycoffey/9341ff6e624042d61c744a1734f967a3 to your computer and use it in GitHub Desktop.
Webpack Config to use SCSS Preloader with Vue
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