Skip to content

Commit

Permalink
fix: environment variable judgment conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfBramble committed Oct 15, 2020
1 parent 6dc598a commit f9b3d77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ const config = {
],
};

if (process.env.NODE_ENV === 'production') config.plugins.unshift('./css-plugin');
if (process.env.NODE_ENV === 'prod') config.plugins.unshift('./css-plugin');
module.exports = config;
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"module": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"build-css": "export NODE_ENV='production' && gulp",
"build-css": "export NODE_ENV='prod' && gulp",
"increase-memory-limit": "cross-env LIMIT=8096 increase-memory-limit",
"storybook": "start-storybook -p 9001 -c .storybook",
"build-storybook": "export NODE_ENV='production' && build-storybook -c .storybook -o dist",
Expand Down Expand Up @@ -158,4 +158,4 @@
"react-router": "3.0.4",
"showdown": "^1.9.0"
}
}
}

0 comments on commit f9b3d77

Please sign in to comment.