create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Need an option to configure OS specific .env file

Open seesamjagan opened this issue 7 years ago • 2 comments

I would like to have option to specific the .env files based on the OS, where ReactJS app is developed/build. Because In my team, some peoples use Window, some use linux. Recently we started using node-sass in our project to support .scss files. while configuring the SASS_PATH path we saw the difference between Linus vs Windows. In Linux: we have to set the SASS_PATH=node_modules: src/common In Windows: we have to set the SASS_PATH=./node_modules; ./src/common

it will be hard for the devops team, when they switch there build machines from Win to Linux or vise versa. without the dedicated os specific .env files

seesamjagan avatar May 16 '19 11:05 seesamjagan

use https://github.com/kentcdodds/cross-env?

bugzpodder avatar May 16 '19 15:05 bugzpodder

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

stale[bot] avatar Jun 15 '19 16:06 stale[bot]