Grunt task to change main.js before deploy
Lordnibbler opened this issue · comments
Use grunt task to change main.js depending on env: http://stackoverflow.com/a/14970339/418864
Is it possible?
Use handlebars to print the
NODE_ENV
to a tag on<body data-env='production'>
, and choose the correct URI inassets/scripts/main.js