Skip to content

Commit

Permalink
If we ship node_modules, we need to not fingerprint them.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanhammond committed Mar 16, 2019
1 parent fc9216c commit 6261fba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ module.exports = {
throw new SilentError("This version of ember-cli-fastboot requires a newer version of broccoli-asset-rev");
}

// Prevent fingerprinting node_modules
app.options.fingerprint = app.options.fingerprint || {};
app.options.fingerprint.exclude = app.options.fingerprint.exclude || [];
app.options.fingerprint.exclude.push('node_modules/');

// set autoRun to false since we will conditionally include creating app when app files
// is eval'd in app-boot
app.options.autoRun = false;
Expand Down

0 comments on commit 6261fba

Please sign in to comment.