webpack ES6转ES5
浏览器适配
Loaders
cnpm install babel-loader@7 babel-core babel-preset-es2015 --save-dev
webpack.config.js
{
test: /\.m?js$/,
exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
options: {
presets: ['es2015']
}
}
}