webpack-blocks
webpack-blocks copied to clipboard
Discussion: Support for DLL
DLL plugins helps webpack not to loop through dependencies when webpack rebuild itself. Are you guys supporting this features?
Hey @nndung179. Thanks for pointing that out.
There is no direct support yet. It would be no problem to use https://www.npmjs.com/package/@webpack-blocks/webpack#addpluginsplugins-webpackplugin, though. (Used like createConfig(..., addPlugins([ new webpack.DllPlugin(...) ])))
Should probably be implemented as another helper method for the core webpack block.
Hey @andywer I think it should be an helper method. It is kind of important feature in development env.
@andywer Could I handle this block?
@nndung179 Sure! Just open a PR :)
You just have to add another function to packages/webpack/index.js and export it, I think.
Maybe something like
function dll (<someOptions>) {
return addPlugins(new webpack.DllPlugin(...))
}
(so it would basically be just a wrapper around addPlugins())