Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- output: {
- //this is the directory where the file will be saved
- path: path.resolve(__dirname, "dist"),
- // file name of the outputed file
- filename: "index.js",
- //in this case it will name the module what you put here
- library: "index",
- // what are you targeting? browser, node, etc. umd targets them all
- libraryTarget: "umd",
- //says what will get exported if you export default this will export that into the library var name
- libraryExport: "default"
- },
Add Comment
Please, Sign In to add comment