Skip to content

Commit

Permalink
Disable EmberCLI JS minification
Browse files Browse the repository at this point in the history
When precompiling assets in production, we ensure that we are not
minifying the JavaScript assets twice.

Duplicating minification can slow down assets precompilation
considerably.

Closes [tricknotes/ember-cli-rails#124][124] and
[tricknotes/ember-cli-rails#123][123].

[123]: tricknotes/ember-cli-rails#123
[124]: tricknotes/ember-cli-rails#124
  • Loading branch information
seanpdoyle committed Oct 29, 2015
1 parent d472059 commit d1f0af9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
master
------

* Disable EmberCLI minification (closes [thoughtbot/ember-cli-rails#124][124] and
[thoughtbot/ember-cli-rails#123][123])
* Copies `dist/index.html` to `dist/assets/index.html` after a build

[123]: https://github.com/thoughtbot/ember-cli-rails/pull/123
[124]: https://github.com/thoughtbot/ember-cli-rails/pull/124
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module.exports = {

included: function(app) {
app.options.storeConfigInMeta = false;
app.options.minifyJS = false;

if (process.env.DISABLE_FINGERPRINTING === 'true') {
app.options.fingerprint = app.options.fingerprint || {};
Expand Down

0 comments on commit d1f0af9

Please sign in to comment.