Webpack Plugins we been keepin on the DLL

module.exports = { 
context: process.cwd(),
entry: {
ReactStuff:[
'react',
'react-dom',
'react-router',
'redux',
'react-redux'
],
BootstrapStuff: [
'bootstrap',
'react-bootstrap',
'chartjs',
'skypager-themes!skypager-themes/packages/dashboard-dark'
]
},

output: {
filename: '[name].dll.js',
path: outputPath,
library: '[name]',
},

plugins: [
new webpack.DllPlugin({
name: '[name]',
path: join(outputPath, '[name].json')
})

]
};
{
plugins: [
new webpack.DllReferencePlugin({
context: process.cwd(),
manifest: require(join(outputPath, 'ReactStuff.json'))
}),
new webpack.DllReferencePlugin({
context: process.cwd(),
manifest: require(join(outputPath, 'BootstrapStuff.json'))
}),
]
}

--

--

--

aka The People’s Champ

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jonathan Soeder

Jonathan Soeder

aka The People’s Champ

More from Medium

useSWR parallel suspense

How to accomplish “Voronoi/Delaunay” transition animation using d3 and react-spring

Building a simple virtual DOM

Create a Map with Directions in MapQuest and React JS