-
-
Notifications
You must be signed in to change notification settings - Fork 84
Added strict mode #43 #54
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
Conversation
Hi @weaverryan , Do you think it can be merged? Please take a look at this PR |
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.
A few implementation things, but this is definitely a good idea - don't see any reason not to do this :)
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.
Looks great - minor comments (and needs a rebase now)
@weaverryan fixed and rebased. |
@weaverryan Have you had time to look into this? I think it's ready for merge |
Very well done! Thanks for the great work and your patience @karser! |
This PR was merged into the master branch. Discussion ---------- Added strict mode #43 This PR introduces `strict_mode` which is true by default so it doesn't change the original bundle behavior. If set to false it suppresses all the exceptions thrown because of missing builds. It makes sense to disable strict mode for test environment where you don't need to build your assets. ``` # config/packages/test/webpack_encore.yaml webpack_encore: strict_mode: false ``` Here is the original issue #43 Commits ------- a74a5a2 Added strict mode
I'm glad it's merged! 👍 |
…losoft) This PR was submitted for the 6.0 branch but it was squashed and merged into the 5.4 branch instead. Discussion ---------- Add information about strict_mode for encore I guess it should be both in `5.4` and `6.0`, but actually will be useful down to whenever symfony/webpack-encore-bundle#54 was merged Personally, it took me quite a long time to determine and fix the cause of functional tests failing in CI. I know that stuff is kind of mentioned in `config/packages/webpack_encore.yaml`, but here are my excuses * there is certain time gap between you first install webpack, write your functional tests (involved with actual HTML rendering), add some styles/scripts to template and setup CI to run these tests * this stuff is not mentioned in the docs at all - `fgrep -RH strict_mode .` gives 0 results Commits ------- 2b6371f Add information about strict_mode for encore
This PR introduces
strict_mode
which is true by default so it doesn't change the original bundle behavior. If set to false it suppresses all the exceptions thrown because of missing builds. It makes sense to disable strict mode for test environment where you don't need to build your assets.Here is the original issue #43