update webpack config
update webpack config
This commit is contained in:
parent
36fa7c6c18
commit
9e74a856f6
5 changed files with 140 additions and 154 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
var path = require('path');
|
||||
var webpack = require('webpack');
|
||||
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
// 入口
|
||||
|
@ -29,10 +28,8 @@ module.exports = {
|
|||
loader: 'vue-loader',
|
||||
options: {
|
||||
loaders: {
|
||||
css: ExtractTextPlugin.extract({
|
||||
use: 'css-loader',
|
||||
fallback: 'vue-style-loader' // <- this is a dep of vue-loader, so no need to explicitly install if using npm3
|
||||
})
|
||||
css: 'vue-style-loader!css-loader',
|
||||
less: 'vue-style-loader!css-loader!less-loader'
|
||||
},
|
||||
postLoaders: {
|
||||
html: 'babel-loader'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue