@@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"dev": "webpack-dev-server --mode=development --open --hot",
- "build": "webpack --mode=production --progress --hide-modules --config webpack.config.js",
+ "build": "webpack --mode=production --progress --hide-modules",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
@@ -8,7 +8,7 @@ var config = {
output: {
path: path.resolve(__dirname + '/dist'),//打包生成文件地址
filename: '[name].build.js',//生成文件ming
- publicPath: '/dist/'//文件输出的公共路径
+ publicPath: './'//文件输出的公共路径
module: {
rules: [