Skip to content

Commit

Permalink
fix: preserve previous build dir (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenKS12138 authored Jan 27, 2021
1 parent 216b27c commit a4829d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-rax-app/src/setDev.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = function (api) {
// Remove outputDir when start devServer
const { outputDir = 'build' } = userConfig;
configs.forEach((config) => {
fs.removeSync(path.resolve(rootDir, outputDir, config.name));
fs.emptyDirSync(path.resolve(rootDir, outputDir, config.name));
});

logWebpackConfig(configs);
Expand Down

0 comments on commit a4829d0

Please sign in to comment.