Skip to content

Commit cf7bf84

Browse files
committed
feat: empty dest directory before build and serve.
1 parent 8b04f07 commit cf7bf84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/mars-cli/lib/build.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ async function build(cmd) {
1717
build
1818
} = require(buildPath);
1919

20+
process.env.NODE_ENV = 'production';
21+
2022
const options = {
2123
target,
2224
build: true

0 commit comments

Comments
 (0)