mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-08-07 11:27:42 +08:00
#1 -- added support to import app configuration based on --env
This commit is contained in:
@@ -15,6 +15,7 @@ if(args._.length > 0 && args._.indexOf('start') !== -1) {
|
||||
} else {
|
||||
env = 'dev';
|
||||
}
|
||||
process.env.REACT_WEBPACK_ENV = env;
|
||||
|
||||
// Get available configurations
|
||||
var configs = {
|
||||
|
||||
Reference in New Issue
Block a user