Replies: 1 comment 3 replies
-
|
I was actually able to solve this by combining my 2 configurations into a single configuration with some clever output path stuff. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a directory structure kinda like this:
I have 2 separate Webpack configurations. One builds a bundle for "Site A" and one builds a bundle for "Site B".
Site A files consist of
A.js&shared.js. Site B files consist ofB.jsandshared.js.I always run my webpack build using both configurations at the same time, even when watching. My problem is that when something goes wrong in the
shared.jslike it fails linting or whatever, I see the linting error twice in my terminal: once for Site A config and once for Site B config.Is it possible to somehow avoid seeing the errors twice? Like somehow be able to suppress all errors (linting errors, compiling errors, module resolution errors, etc) until after both configurations are done and then display them in a way that doesn't show duplicates? Like maybe save the errors to an object using the referenced file path as the object keys so that it doesn't create duplicates and then show all errors at the end when webpack is done.
Any sort of ideas in this area?
Beta Was this translation helpful? Give feedback.
All reactions