Skip to content

Instantly share code, notes, and snippets.

@davidgilbertson
Last active November 10, 2022 04:00
Show Gist options
  • Save davidgilbertson/93704e1b8b00fed17f48638740bef782 to your computer and use it in GitHub Desktop.
Save davidgilbertson/93704e1b8b00fed17f48638740bef782 to your computer and use it in GitHub Desktop.
const path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'src/index.js'),
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].[contenthash].js',
},
optimization: {
splitChunks: {
chunks: 'all',
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment