Flush CSS Chunks Webpack Plugin
Generates CSS hash for mapping between Webpack chunks and CSS chunks.
yarn add flush-css-chunks-webpack-plugin
npm install flush-css-chunks-webpack-plugin
IntroductionIf your using awesome babel-plugin-dual-import or babel-plugin-universal-import and for some reason you cannot implement SSR than this plugin is what you need. It maps trough webpack stats and generates ``
Foo: '/static/Foo.css', Bar: '/static/Bar.css'
- assetPath - default: null By default plugin uses output.publichPath defined in webpack.config to generate
- entryOnly - default: false By default plugin injects the ``
true`` plugin will only inject the mapping in the initial ``
.js`` bundle (use only for PRODUCTION)
- entries - default: null By default, if ``
is specified, plugin injects the`
produced by webpack. Using this option you can specify entry chunks in which the CSS mapping will be injected. This is useful if you have common chunks that are already loaded on the page. **Note:** This only works if`
is set to`
, if it is set to`
false``, CSS mapping will be injected in every chunk.