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
Improve webpack configuration #9225
Conversation
Some Javascript lint tests are failing. While I get the error (although I disagree with it), I don't know why there is an error now but not in the previous configuration considering this is cut/pasted code. |
I merged this into your Compared to aces/main it seems to be a little faster. This branch + datetime filter:
aces/main:
|
Yup, this was a |
(by @ridz1208 on the related issue)
I have not tested this case yet but it is handled by the code and should be working. I am having more troubles with the new config not picking up the custom configuration in the electrophysiology browser. I am not sure why as I use the same logic as the old code, so I guess this must come from |
Okay, sooo despite this somewhat chaotic development, I think it is done and should be working ! In terms of functionality, everything should be the same as before and not break existing code. The only thing I have not tested yet (but which should work) is project-specific overrides, any tips on how to test that @ridz1208 ? In terms of speed, the gain does not look that significant, but removing the Also, I did not manage to cleanly integrate the EDIT: Actually, the |
Assigned @laemtl to test the project override ! |
|
||
// HACK: For some reason, the electrophysiology session view only compiles if | ||
// it uses a separate (although possibly identical) configuration. | ||
if (!target || target === 'electrophysiology_browser') { |
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.
I'm curious why we are checking for !target as well here.
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.
target
informs us of which single module we want to compile, but it can also be undefined
if we want to compile all modules. We need to take into account both of these cases.
Brief summary of changes
Improve the webpack configuration to make building LORIS more memory and time efficient. The changes of this PR are described in this message.
Testing instructions
Links to related issues