start-react / sb-admin-react

Starter theme for React JS Dashboard Apps
http://sb-admin-react.geekydev.com:3009/
Other
836 stars 274 forks source link

Extra information and documentation #11

Closed Nomaq closed 8 years ago

Nomaq commented 8 years ago

Hello great theme i just wanted to ask a few questions how do i set the production or development environment before running the server how do i build a production or development environment separately thank you

shwetapal commented 8 years ago

Hi,thanks for appreciating. Please follow this url for the issue:https://github.com/start-react/sb-admin-react/blob/master/README.md

Nomaq commented 8 years ago

Hey thank you very much for you quick response, i read the read me it helped me set my environment but i was asking more on tems of production and development builds this theme has two files webpack.local.config.js webpack.production.config.js

and in the server js its searchig for process.env.PRODUCTION i was aking if to switch from the two environments there is somethis like npm build production/development or do i need to change some cofing file thank you again for your response

shwetapal commented 8 years ago

For development mode just use npm start, npm build only works for production. Thanks.

sarika01 commented 8 years ago

This is a little late, but if you would like to build for development or production, the webpack config file can be specified as follows: In the package.json, under "scripts", you can specify the config file to use for "build" command.