Skip to content

Commit

Permalink
fix loader query
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Dec 22, 2016
1 parent 8ab2848 commit 17dfbed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions template/build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ _.loadersOptions = () => {
function generateLoader(langs) {
langs.unshift('css-loader?sourceMap&-autoprefixer')
if (!isProd) {
return ['vue-style-loader'].concat(langs.map(lang => `${lang}?sourceMap`)).join('!')
return ['vue-style-loader'].concat(langs).join('!')
}
return ExtractTextPlugin.extract({
fallbackLoader: 'vue-style-loader',
Expand All @@ -53,10 +53,10 @@ _.loadersOptions = () => {
postcss: config.postcss,
loaders: {
css: generateLoader([]),
sass: generateLoader(['sass-loader?indentedSyntax']),
scss: generateLoader(['sass-loader']),
less: generateLoader(['less-loader']),
stylus: generateLoader(['stylus-loader']),
sass: generateLoader(['sass-loader?indentedSyntax&sourceMap']),
scss: generateLoader(['sass-loader?sourceMap']),
less: generateLoader(['less-loader?sourceMap']),
stylus: generateLoader(['stylus-loader?sourceMap']),
js: 'babel-loader'
}
}
Expand Down

0 comments on commit 17dfbed

Please sign in to comment.