mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Webpack devServer port via process.env.PORT
This commit is contained in:
		
							parent
							
								
									87a76b6227
								
							
						
					
					
						commit
						df8b001991
					
				@ -26,7 +26,7 @@
 | 
				
			|||||||
    "build": "npm run build:assets && npm run build:html",
 | 
					    "build": "npm run build:assets && npm run build:html",
 | 
				
			||||||
    "build:assets": "NODE_ENV=production webpack -p",
 | 
					    "build:assets": "NODE_ENV=production webpack -p",
 | 
				
			||||||
    "build:html": "cp public/*.* dist/.",
 | 
					    "build:html": "cp public/*.* dist/.",
 | 
				
			||||||
    "start": "NODE_ENV=development webpack-dev-server --config webpack.config.js --progress --colors --port 3000",
 | 
					    "start": "NODE_ENV=development webpack-dev-server --config webpack.config.js --progress --colors",
 | 
				
			||||||
    "start:heroku": "UNLEASH_API=http://unleash.herokuapp.com npm run start",
 | 
					    "start:heroku": "UNLEASH_API=http://unleash.herokuapp.com npm run start",
 | 
				
			||||||
    "lint": "eslint . --ext=js,jsx",
 | 
					    "lint": "eslint . --ext=js,jsx",
 | 
				
			||||||
    "test": "npm run build",
 | 
					    "test": "npm run build",
 | 
				
			||||||
 | 
				
			|||||||
@ -76,5 +76,6 @@ module.exports = {
 | 
				
			|||||||
                secure: false,
 | 
					                secure: false,
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 | 
					        port: process.env.PORT || 3000,
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user