var path = require('path');
var webpack = require('webpack');
module.exports = {
entry:['./client/main.js'],
output:{
filename:'bundle.js',
path:'/',
publicPath:'/',
},
module:{
rules:[
{
test:/(\.js||jsx)$/i,
use:{
loader:'babel-loader',
options:{
presets:['env','react'],
plugins: ['react-hot-loader/babel'],
}
},
exclude:/node_modules/i,
}
]
},
plugins:[
new webpack.HotModuleReplacementPlugin()
]
}
杨__羊羊
aluckdog
随时随地看视频慕课网APP
相关分类