webpack / webpack.js.org

Repository for webpack documentation and more!

Home Page:https://webpack.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document webpack change: feat: move css exportsOnly to css generator options

webpack-bot opened this issue · comments

A pull request by @ahabhgk was merged and maintainers requested a documentation change.

See pull request: webpack/webpack#17946


resolve #17648

What kind of change does this PR introduce?

add module.generator.css, module.generator['css/auto'], module.generator['css/module'], and module.generator['css/global']

Did you add tests for your changes?

add configCases/css/exports-only-generator-options

Does this PR introduce a breaking change?

Yes, experiments.css is changed to boolean, instead of { exportsOnly: boolean } | boolean, but since it's still experiments, I think it's ok to break

What needs to be documented once your changes are merged?

module.generator will have css related generator options (module.generator.css, module.generator['css/auto'], module.generator['css/module'], and module.generator['css/global']) when experiments.css enabled.