@rambler-tech/razzle-chunks
v0.1.0
Published
Support for split chunks
Downloads
2
Readme
Chunks Plugin
Support for split chunks
Install
npm install -D @rambler-tech/razzle-chunks
or
yarn add -D @rambler-tech/razzle-chunks
Usage
Add the plugin to razzle.config.js
const path = require('path')
const ChunksPlugin = require('@rambler-tech/razzle-chunks')
module.exports = {
plugins: [
ChunksPlugin({
vendors: /[\\/]node_modules[\\/]*[\\/]/
})
],
modifyWebpackConfig({webpackConfig}) {
// ...
return webpackConfig
}
}