Commit b8abb7a4 authored by 周健威's avatar 周健威

Update webpack.base.conf.js

parent 64ac9cb8
......@@ -58,10 +58,17 @@ module.exports = {
{
test: /\.js$/,
loader: 'babel-loader?cacheDirectory',
include: [resolve('src'), resolve('test')]
},
{
test: /\.js$/,
use: [{
loader: 'babel-loader',
options: {
presets: ['es2015']
},
include: [resolve('src'), resolve('test')]
}
}],
exclude: /node_modules/
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment