Support custom webpack loader configurations #370
Labels
CLI
documentation
Greenwood specific docs
enhancement
Improve something existing (e.g. no docs, new APIs, etc)
Type of Change
Summary
Currently, if a user wants to add their own webpack plugins, they can do so through the greenwood.config.js. But what if a user wants to modify an existing loader? I propose allowing user overrides of webpack loaders.
production, development, and common configs. As well as an ability to eject current configs to user's workspace(maybe a separate issue/PR).Details
Users need to be able to modify webpack configurations for a variety of things. For example, if I want to add rehype plugins to wc-markdown-loader, I would need access to the webpack config so that I can add:
My Suggestion for accomplishing this is:
modify context lifecycle to check for if a webpack config existsmodify build/develop tasks to use the compilation.context to decide what webpack config to useA future idea would be to have a CLI command to eject the configs into the user's project directory.
The text was updated successfully, but these errors were encountered: