Skip to content

WP-Scripts webpack watcher issues with custom config #28720

Answered by gziolo
TeamDNK asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like a very advanced use case with multiple webpack configs and multiple entry points. I'm afraid I can't help as it requires a deep understanding of how webpack works. It's definitely out of the scope of what @wordpress/scripts is able to support out of the box. The only pointer I can give you is this plugin:

// During rebuilds, all webpack assets that are not used anymore will be
// removed automatically. There is an exception added in watch mode for
// fonts and images. It is a known limitations:
// https://github.com/johnagan/clean-webpack-plugin/issues/159
new Clea…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by youknowriad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #28713 on February 04, 2021 07:59.