replace-with-chunk-webpack-plugin
v0.0.1
Published
replace with chunk webpack plugin
Downloads
5
Readme
ReplaceWithChunk Webpack Plugin
Install
npm i -D replace-with-chunk-webpack-plugin
Usage
import { ReplaceWithChunkPlugin } from 'replace-with-chunk-webpack-plugin';
// ...
export default {
plugins: [
new ReplaceWithChunkPlugin({
chunks: ['content'],
replaces: [[/document\.head/g, 'document.documentElement']],
}),
],
};