Skip to content

Commit

Permalink
update webpack configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
hijiangtao committed Sep 6, 2017
1 parent ec299c3 commit 95807d9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ var devConfig = {
},
devtool: 'source-map',
module: {
loaders: [{
test: /\.js$/,
loaders: [{
test: /\.js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
}, {
test: /\.(png|jpg)$/,
loader: 'url?limit=8192&context=client&name=[path][name].[ext]'
Expand All @@ -41,12 +41,19 @@ var devConfig = {
}, {
test: /\.css$/,
loader: 'style!css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]'
}, { test: /\.ejs$/, loader: 'ejs-loader?variable=data' }]
}, {
test: /\.ejs$/,
loader: 'ejs-loader?variable=data'
}]
},
resolve: {
alias: {
'vue$': 'vue/dist/vue.js'
}
},
node: {
fs: "empty",
child_process: "empty"
}
};

Expand Down

0 comments on commit 95807d9

Please sign in to comment.