0.0.1 • Published 4 years ago
replace-with-chunk-webpack-plugin v0.0.1
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']],
}),
],
};
0.0.1
4 years ago