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

AutoDLL not working in NextJS #131

Open
imranweb opened this issue Apr 25, 2019 · 1 comment
Open

AutoDLL not working in NextJS #131

imranweb opened this issue Apr 25, 2019 · 1 comment

Comments

@imranweb
Copy link

I have tried implementing autodll in nextjs environment but its not excluding the vendor pages from chunks such as main.js, common.js, app.js, index.js.

config.plugins.push(
new AutoDllPlugin({
inject: true, // will inject the DLL bundles to index.html
filename: '[name].js',
entry: {
vendor: [
'react',
'react-dom',
'styled-components',
]
}
})
);

@dav-is
Copy link

dav-is commented May 29, 2019

That's because we already use this plugin internally in Next.js

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

No branches or pull requests

2 participants