-
Notifications
You must be signed in to change notification settings - Fork 109
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
wrong assets url if rootUrl is set to empty string '' #540
Comments
this is supported on ember-cli ember-cli/ember-cli#6182 |
can't deploy app to github-pages or elsewhere where relative path is needed without a leading '/' |
I'm running into the same issue. Tried setting I don't know the deployment location at build time. So I need to use a relative URL. Configured Ember's router to use hash location strategy. So no need for absolute URL. Just need to figure out how to configure Ember Auto Import / Webpack to use relative URLs for assets as well. |
Just figured out that it's working if setting diff --git a/website/ember-cli-build.js b/website/ember-cli-build.js
index 9b5e85d..978f723 100644
--- a/website/ember-cli-build.js
+++ b/website/ember-cli-build.js
@@ -4,6 +4,9 @@ const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function (defaults) {
let app = new EmberApp(defaults, {
+ autoImport: {
+ publicAssetURL: 'assets/',
+ },
'ember-bootstrap': {
whitelist: ['bs-navbar', 'bs-collapse'],
}, |
This is not working if running |
That's right. But in tests it looks to work without setting the public asset url. So i wrapped it in an if env !== test |
because ensureTrailingSlash for rootUrl will return a "/" and will end up adding a leading slash to the full url
The text was updated successfully, but these errors were encountered: