module.exports = {mode: dev ? "development" : "production",context: path.join( __dirname, "" ),devtool: dev ? "none" : "source-map",entry: { //babel-polyfill 是什么意思? app: [ "babel-polyfill", "./src/client.js" ],
},resolve: { modules: [
path.resolve( "./src" ), "node_modules",
],
},output: { path: path.resolve( __dirname, "dist" ), filename: "[name].bundle.js",
},
plugins,};
添加回答
举报
0/150
提交
取消