webpack-blocks icon indicating copy to clipboard operation
webpack-blocks copied to clipboard

Discussion: Support for DLL

Open davidnguyen11 opened this issue 8 years ago • 5 comments

DLL plugins helps webpack not to loop through dependencies when webpack rebuild itself. Are you guys supporting this features?

davidnguyen11 avatar Dec 07 '16 11:12 davidnguyen11

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(...) ])))

andywer avatar Dec 07 '16 11:12 andywer

Should probably be implemented as another helper method for the core webpack block.

andywer avatar Dec 07 '16 11:12 andywer

Hey @andywer I think it should be an helper method. It is kind of important feature in development env.

davidnguyen11 avatar Dec 09 '16 04:12 davidnguyen11

@andywer Could I handle this block?

davidnguyen11 avatar Dec 09 '16 14:12 davidnguyen11

@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())

andywer avatar Dec 09 '16 14:12 andywer