feat(cli): add build-site command

This commit is contained in:
陈嘉涵
2019-11-29 17:11:07 +08:00
parent f1310ff01b
commit 5f91e16825
11 changed files with 164 additions and 120 deletions
+8
View File
@@ -88,4 +88,12 @@ export function getWebpackConfig(): object {
return {};
}
export function setModuleEnv(value: 'esmodule' | 'commonjs') {
process.env.BABEL_MODULE = value;
}
export function setNodeEnv(value: 'production' | 'development') {
process.env.NODE_ENV = value;
}
export { decamelize };