0.0.1 • Published 10 years ago

amd-externals-plugin v0.0.1

Weekly downloads
3
License
-
Repository
-
Last release
10 years ago

amd-externals-plugin

use

plugins:[new amdExternalsPlugin({
    externals: externals,
    name: '[name]',
    wrap: function(obj){ return obj.arrOutput} // you can use it to add something
})]
  • if you use this , not use webpackConfig.externals and webpackConfig.output.libraryTarget
  • it output as amd by default and the externals will use require('xx') as amd
  • you can alse use it to wrap