-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Files imported via app.import are not included in production build #6829
Comments
@MartinMalinda does that happen only on the 2.12 beta or in other releases too? |
Does the same issue exist when you strip the leading |
@rwjblue It works correctly without I looked a few online code examples and official docs and none of them mention using |
@MartinMalinda thanks to checking, that def sounds like a bug then. Although a strange one... |
@rwjblue should we disallow relative paths? I am quite surprised they actually work, that isn't intended... but i can be convinced that we should support them. |
@stefanpenner - I was also very surprised that relative paths worked here. IMO, relative paths "break" the mental model that we want folks to have which is that you are importing from some ephemeral tree that is reified just prior to final concatenation. |
But I totally think its a bug that we somehow treat relative paths differently between |
Edit: I was wrong :D Got it working, still struggling in understanding the ember-cli logic.
|
I'm getting the same issue with absolute paths. Is there any workaround? |
I use "./" (relative path) and it work perfectly for both dev and prod. |
I had this same issue as well when upgrading to ember-cli 2.12.3, removing the relative path solved it though. Thanks! |
We gave up and basically replaced |
FWIW the |
I'm closing this issues as it seems to be working as intended |
It would be nice if the documentation made this clear, this issue drove us crazy |
@pzac pull requests welcome 😉 |
node: 7.5.0
os: darwin x64
ember-cli: 2.12.0-beta.1
Maybe but I'm missing something but imported files are only available in development build but not in production build.
Reproduction repo: https://github.com/MartinMalinda/ember-cli-import-issue
The text was updated successfully, but these errors were encountered: