Skip to content

Commit

Permalink
Add publicAssetURL
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Oct 25, 2021
1 parent fa68688 commit dd0a3e3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');

module.exports = function (defaults) {
let environment = EmberAddon.env();
let isDeploying = environment === 'production';

let app = new EmberAddon(defaults, {
'ember-cli-babel': {
includePolyfill: true,
},
autoImport: {
publicAssetURL: 'https://ember-cli.github.io/ember-page-title',
},
autoImport: isDeploying
? {
publicAssetURL: 'https://ember-cli.github.io/ember-page-title',
}
: {},
fingerprint: {
extensions: [
'js',
Expand Down

0 comments on commit dd0a3e3

Please sign in to comment.