Last active
August 13, 2021 08:46
-
-
Save ZenulAbidin/b1ea5667573b79ec169762ac85496614 to your computer and use it in GitHub Desktop.
An example Webpack configuration file. https://webpack.js.org/guides/code-splitting/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'), | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
please check your mail from nft30001