Lordnibbler / colorpicker-server

Node.js + Backbone.js Colorpicker Server for controlling LED lighting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 in assets/scripts/main.js