Skip to content

Instantly share code, notes, and snippets.

@ZenulAbidin
Last active August 13, 2021 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZenulAbidin/b1ea5667573b79ec169762ac85496614 to your computer and use it in GitHub Desktop.
Save ZenulAbidin/b1ea5667573b79ec169762ac85496614 to your computer and use it in GitHub Desktop.
An example Webpack configuration file. https://webpack.js.org/guides/code-splitting/
const path = require('path');
module.exports = {
mode: 'development',
entry: {
index: './src/index.js',
another: './src/another-module.js',
index: {
import: './src/index.js',
dependOn: 'shared',
},
another: {
import: './src/another-module.js',
dependOn: 'shared',
},
shared: 'lodash',
},
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, 'dist'),
},
};
@studyroom1
Copy link

please check your mail from nft30001

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