Skip to content

Commit

Permalink
fix(webpack): fix vue options
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jan 23, 2016
1 parent 44648b2 commit f054108
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = function (type, options) {
} else if (options.use === 'vue') {
// push options for Vue
config.vue = {
// loaders: {},
loaders: {},
postcss: postcssPlugins
}
// push vue-loader for Vue component
Expand All @@ -92,7 +92,9 @@ module.exports = function (type, options) {
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!postcss-loader')
}
)
config.vue.loaders.css = ExtractTextPlugin.extract('style-loader', 'css-loader')
if (options.use === 'vue') {
config.vue.loaders.css = ExtractTextPlugin.extract('style-loader', 'css-loader')
}
config.plugins = [
new webpack.optimize.OccurenceOrderPlugin(),
/*eslint-disable */
Expand Down

0 comments on commit f054108

Please sign in to comment.