Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: Support for DLL #16

Open
davidnguyen11 opened this issue Dec 7, 2016 · 5 comments
Open

Discussion: Support for DLL #16

davidnguyen11 opened this issue Dec 7, 2016 · 5 comments

Comments

@davidnguyen11
Copy link
Contributor

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

@andywer
Copy link
Owner

andywer commented Dec 7, 2016

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
Copy link
Owner

andywer commented Dec 7, 2016

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

@davidnguyen11
Copy link
Contributor Author

davidnguyen11 commented Dec 9, 2016

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

@davidnguyen11
Copy link
Contributor Author

@andywer Could I handle this block?

@andywer
Copy link
Owner

andywer commented Dec 9, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants