kimroen / ember-cli-coffeescript

Adds precompilation of CoffeeScript files and all the basic generation types to the ember generate command.
MIT License
72 stars 49 forks source link

Configuration is loaded before process.env.EMBER_ENV is set #98

Open afn opened 8 years ago

afn commented 8 years ago

This code is invoked before process.env.EMBER_ENV has been set, so environment-specific configuration does not work properly.

To reproduce:

ember new my-project
cd my-project
ember install ember-cli-coffeescript
echo 'module.exports = function(environment) {console.log("environment is", environment);};' >config/environment.js
ember build

Prints out:

environment is undefined
version: 1.13.12
Buildingenvironment is development
...

The very first environment is undefined is due to ember-cli-coffeescript.

May be related to #61.