Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepend portion of asset-urls not accounted for #310

Open
runspired opened this issue Feb 14, 2023 · 0 comments
Open

prepend portion of asset-urls not accounted for #310

runspired opened this issue Feb 14, 2023 · 0 comments

Comments

@runspired
Copy link

Related ember-cli/ember-cli-terser#275 (comment)

When specifying

new EmberApp(defaults, {
  fingerprint: {
    prepend: '<<CDN URL>>'
  }
})

It appears to be impossible to build with ember-cli-terser enabled at all, even when deactivating sourcemaps via

new EmberApp(defaults, {
  sourcemaps: {
    enabled: false
  }
})

Just in case ember-cli-terser and broccoli-terser-sourcemap need to be aware of this URL I added the publicUrl option

new EmberApp(defaults, {
  'ember-cli-terser': {
    publicUrl: '<<CDN URL>>'
  },
  fingerprint: {
    enabled: false,
    publicUrl: '<<CDN URL>>'
  }
})

All of this was to no avail. Even with sourcemaps disabled I get logs like the following:

[WARN] (broccoli-terser-sourcemap) "<<CDN URL>>/assets/leaflet/leaflet-src-18322c41aab5808cecb4784380d74637.js.map" referenced in "assets/leaflet/leaflet-src-18322c41aab5808cecb4784380d74637.js" could not be found

As well as a build error:

Unexpected token punc «:», expected punc «,»

Using a debugger I find that this error is from within a sourcemap being parsed (surprising with them disabled?!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant