CustomVarLibraryNameAppendPlugin
Version: 2.1.3
A WebPack plugin to allow to set a different module name to the var libraryTarget
and the AMD/CommonJS when using libraryTarget:'umd'
.
The latest release adds the hability to change the file name and handle multiple bundle names.
The plugin appends the module to the var intead of overwrite.
Install
$ npm i -D webpack-custom-var-library-name-plugin-append
Usage
var CustomVarLibraryNameAppendPlugin = ; var webpackConfig = ... output: path: path filename: '[name].min.js' library: 'some-name' libraryTarget: 'umd' umdNamedDefine: true ... plugins: ... name: 'var-name' ... ...
var CustomVarLibraryNameAppendPlugin = ; plugins: ... name: 'chunk-name': var: 'var-name' file: 'file-name' ... ...
Credit
- Germán Lena
- Barthélémy Ledoux"
Changes
v2.1.3 (2018-08-03)
- Fixed: Git files causing issues with NPM command-line
Copyright © by Ahmed el-Sawalhy (Yagasoft) -- GPL v3 Licence