Skip to content

Commit 141d20b

Browse files
committed
生成目录问题
1 parent 68f4834 commit 141d20b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webpack/prod.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ const proCfg = {
4545
]
4646
},
4747
plugins: [
48-
new CleanWebpackPlugin([path.join(APP_PATH, AppCfg.app.BuildPath)]),
48+
// new CleanWebpackPlugin([path.join(APP_PATH, AppCfg.app.BuildPath)]),
49+
new CleanWebpackPlugin([path.join(APP_PATH, AppCfg.app.BuildPath)], { root: APP_PATH }),
4950
new UglifyJSPlugin(),
5051
new webpack.DefinePlugin({ 'process.env': { NODE_ENV: JSON.stringify('production') } }),
5152
new ExtractTextPlugin({ filename: '[name].[contenthash:5].css', allChunks: true }),

0 commit comments

Comments
 (0)