说明路径有问题,解决方法:
var path = require("path");
module.exports = {
entry: './src/script/main.js', // 需要打包的路径
output: {
path: path.resolve(__dirname,'./dist/js'), // 打包后存放的位置
filename: 'bundle.js' // 打包后的名称
}
}
微信扫一扫
说明路径有问题,解决方法:
var path = require("path");
module.exports = {
entry: './src/script/main.js', // 需要打包的路径
output: {
path: path.resolve(__dirname,'./dist/js'), // 打包后存放的位置
filename: 'bundle.js' // 打包后的名称
}
}
相关推荐