Skip to content

Commit 5180333

Browse files
Add production NODE_ENV for build scripts
1 parent 226f4c2 commit 5180333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
],
5353
"scripts": {
5454
"cleanup": "rm -rf dist/ > /dev/null",
55-
"build": "yarn cleanup && rollup -c",
55+
"build": "NODE_ENV=production yarn cleanup && rollup -c",
5656
"storybook": "NODE_ENV=development storybook dev -p 6006",
57-
"build-storybook": "storybook build",
57+
"build-storybook": "NODE_ENV=production storybook build",
5858
"test": "jest",
5959
"test:watch": "jest --watch",
6060
"lint": "yarn lint:types && yarn lint:js && yarn lint:prettier",

0 commit comments

Comments
 (0)