Skip to content

Instantly share code, notes, and snippets.

@a1exlism
Last active March 1, 2018 14:00
Show Gist options
  • Save a1exlism/de48fd1e6d4e7ce4145a2a937a9bddc8 to your computer and use it in GitHub Desktop.
Save a1exlism/de48fd1e6d4e7ce4145a2a937a9bddc8 to your computer and use it in GitHub Desktop.
module.export = {
entry: {
'./main1.js',
'./main2.js'
},
output: {
filename: '[name]x.js'
}
}
// [name] stand for the value for webpack input js name;
// in this example, the name stands for `main1x.js` and `main2xjs`
// and the default Path is ./dist/xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment