Skip to content

Instantly share code, notes, and snippets.

@ncoden
Last active February 21, 2018 08:19
Show Gist options
  • Save ncoden/81831acce6f868b97ec87d5edc59605c to your computer and use it in GitHub Desktop.
Save ncoden/81831acce6f868b97ec87d5edc59605c to your computer and use it in GitHub Desktop.
module.exports = {
entry: {
'exampleCore': './src/example-core',
'examplePlugin': './src/example-plugin',
},
externals: {
'./example-core': {
amd: 'exampleCore',
commonjs: 'exampleCore',
commonjs2: 'exampleCore',
root: ['namespace', 'exampleCore'],
}
},
output: {
library: `namespace`,
libraryTarget: 'umd',
filename: `[name].js`,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment