-
Notifications
You must be signed in to change notification settings - Fork 110
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
Move modifyAssetLocation from build options to the config (for when path option is used) #346
Move modifyAssetLocation from build options to the config (for when path option is used) #346
Conversation
8e4eccd
to
3a69bd3
Compare
@thoov @rwjblue , I did an attempt to fix the issue by also looking up Edit: I have tested this fix with our codebase and it does indeed work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. This seems important to do, thank you @robinborst95!
It seems not great that you might have to duplicate, or even that you have to decide that you want to use the config file vs ember-cli-build.js 🤔
You could (in your config) instantiate the Project (via |
@rwjblue I agree, I think it should work that either the config file or the ember-cli-build file defines the function then. I could find how to get the latter working though. I tried looking into the source code how the build works, and if I understand correctly, the The other option of having it in the config file makes a lot more sense to me at all actually, as the
I don't see how this would help this addon detect the |
@robinborst95 - Let's do it! 😸 |
47c8271
to
f053ec0
Compare
f053ec0
to
83f57d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rwjblue thanks for your response! I've gone ahead and moved modifyAssetLocation
from the build options to the config, and also updated the Readme accordingly. I've tested this in our own app as well and I can confirm it works.
The `forceModulesToBeLoaded` can potientally cause unindented side effects when executed. You can pass custom filter fuctions that allow | ||
### `forceModulesToBeLoaded` | ||
|
||
The `forceModulesToBeLoaded` function can potentially cause unintended side effects when executed. You can pass custom filter fuctions that allow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some typos here while I was at it
@@ -124,19 +118,15 @@ module.exports = { | |||
attachMiddleware.serverMiddleware(startOptions.app, { | |||
configPath: this.project.configPath(), | |||
root: this.project.root, | |||
fileLookup: this.fileLookup, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this as well, as this is a leftover from the 1.0 version
@rwjblue @kategengler any chance this PR can be reviewed soon 🙏 ? |
We would love to start using it, thanks @robinborst95 for working on this. @rwjblue @kategengler any chance we can get this merged? |
@rwjblue @kategengler can you please consider merging this? This has been open for almost a year. |
This PR adds a failing test to confirm #344. This test does basically the same as #345 (I copied the snapshot as that should be the exact same), but this test uses the
--path
option and therefore fails.