Skip to content

Commit

Permalink
Merge pull request praya#6 from upfluence/master
Browse files Browse the repository at this point in the history
Fix ember production build error
  • Loading branch information
praya authored May 2, 2019
2 parents 3539368 + 62410dc commit 265b67f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ module.exports = {
paceScript, addonScript;

if (this.app.env === 'production') {
paceScript = UglifyJS.minify(paceScriptPath).code;
addonScript = UglifyJS.minify(addonScriptPath).code;
paceScript = UglifyJS.minify(
fs.readFileSync(paceScriptPath, 'utf8')
).code;
addonScript = UglifyJS.minify(
fs.readFileSync(addonScriptPath, 'utf8')
).code;
} else {
paceScript = fs.readFileSync(paceScriptPath, 'utf8');
addonScript = fs.readFileSync(addonScriptPath, 'utf8');
Expand Down

0 comments on commit 265b67f

Please sign in to comment.