-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"url": "https://lukeed.com" | ||
}, | ||
"scripts": { | ||
"build": "NODE_ENV=production webpack --config config/webpack", | ||
"build": "cross-env NODE_ENV=production webpack --config config/webpack", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lukeed
Author
Owner
|
||
"start": "serve dist -s", | ||
"watch": "webpack-dashboard -- webpack-dev-server --config config/webpack" | ||
}, | ||
|
@@ -29,6 +29,7 @@ | |
"babel-preset-stage-2": "^6.18.0", | ||
"clean-webpack-plugin": "^0.1.14", | ||
"copy-webpack-plugin": "^4.0.1", | ||
"cross-env": "^3.1.4", | ||
"css-loader": "^0.26.1", | ||
"extract-text-webpack-plugin": "beta", | ||
"html-webpack-plugin": "^2.25.0", | ||
|
cross-env
author here 👋Have you thought about the cool new
--env
flag for webpack? If your config file exports a function, it'll accept anenv
object so you don't even need to use environment variables. learn moreAlso, you may be interested in webpack-config-utils 👍