When using @wordpress/scripts, you can replace the existing webpack.config.js file with your own. It would be great if instead of having to build a full webpack config manually there was a way of extending the existing config to add a new module or similar. As an example, @svgr/webpack is useful in the context of blocks but using it means rewriting the entire webpack.config.js file.
When using @wordpress/scripts, you can replace the existing
webpack.config.jsfile with your own. It would be great if instead of having to build a full webpack config manually there was a way of extending the existing config to add a new module or similar. As an example, @svgr/webpack is useful in the context of blocks but using it means rewriting the entirewebpack.config.jsfile.