未验证 提交 1816767d 编写于 作者: J Jeff Wang 提交者: GitHub

Update the NODE_ENV variable. (#310)

上级 502d3c78
...@@ -19,10 +19,13 @@ check_duplicated() { ...@@ -19,10 +19,13 @@ check_duplicated() {
build_frontend() { build_frontend() {
cd $FRONTEND_DIR cd $FRONTEND_DIR
if [ ! -d "dist" ]; then # # Should always rebuild the dist files.
npm install # if [ ! -d "dist" ]; then
npm run build # npm install
fi # npm run build
# fi
npm install
npm run build
for file_name in "manifest.*.js" "index.*.js" "vendor.*.js"; do for file_name in "manifest.*.js" "index.*.js" "vendor.*.js"; do
echo $file_name echo $file_name
check_duplicated $file_name check_duplicated $file_name
......
...@@ -26,7 +26,7 @@ module.exports = merge(baseWebpackConfig, { ...@@ -26,7 +26,7 @@ module.exports = merge(baseWebpackConfig, {
plugins: [ plugins: [
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env': { 'process.env': {
'NODE_ENV': 'production' NODE_ENV: '"production"'
} }
}), }),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册