webpack-plugin-amd2cmd

0.0.9 • Public • Published

Webpack Plugin - Amd2Cmd

A webpack plugin - Transfer amd bundle to cmd.

Usage

const Amd2Cmd = require('webpack-plugin-amd2cmd');

module.exports = {
  entry: {
    // ...
  },
  output: {
    // ...
  },
  // ...
  plugins: [
    new Amd2Cmd({
      groupName: "GROUPNAME",
      modName: "MODNAME",
      dealDeps: function(deps, bundleName) {
        // saveDeps()
      }
    })
  ],
}

Attention

  • Using amd2cmd plugin with webpack.optimize.UglifyJsPlugin, the result have some problem;
  • Maybe the result is relative to the version of webpack, if there is a problem, please modify the replace REG

License

MIT License.

Package Sidebar

Install

npm i webpack-plugin-amd2cmd

Weekly Downloads

1

Version

0.0.9

License

MIT

Unpacked Size

12.9 kB

Total Files

8

Last publish

Collaborators

  • zzuhan
  • barretlee