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() ]}
添加回答
举报
0/150
提交
取消
