Skip to content

Commit

Permalink
Merge pull request #676 from squirmy/master
Browse files Browse the repository at this point in the history
alias sass-loader to scss-loader for unit testing
  • Loading branch information
LinusBorg authored Apr 19, 2017
2 parents f734a43 + 55edf52 commit 7b9e04f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions template/build/webpack.test.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ var webpackConfig = merge(baseConfig, {
rules: utils.styleLoaders()
},
devtool: '#inline-source-map',
resolveLoader: {
alias: {
// necessary to to make lang="scss" work in test when using vue-loader's ?inject option
// see discussion at https://github.com/vuejs/vue-loader/issues/724
'scss-loader': 'sass-loader'
}
},
plugins: [
new webpack.DefinePlugin({
'process.env': require('../config/test.env')
Expand Down

0 comments on commit 7b9e04f

Please sign in to comment.