webpack-pkg-plugin-v4
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/webpack-pkg-plugin-v4 package

2.0.4 • Public • Published

Webpack-Pkg-Plugin-v4

Updated to be compatible with webpack v4

Pkg your scripts into executable

Install

  npm i --save-dev webpack-pkg-plugin-v4

Usage

  const WebpackPkgPlugin = require('webpack-pkg-plugin-v4').WebpackPkgPlugin
  // or with the new syntax (if your Node supports it):
  // const {WebpackPkgPlugin} = require('webpack-pkg-plugin-v4')
  // And if you use modules:
  // import {WebpackPkgPlugin} from 'webpack-pkg-plugin-v4'
  /*
  ...
   */
  // More about pkg configuration: https://github.com/zeit/pkg#config
  new WebpackPkgPlugin({
    // Default params:
    targets: ['host'], // array of targets (--targets option)
    output: '/pkg', // Path for dir with executables inside your output folder (--out-path)
  })

Development

Any contribution, issue or pull request are highly appreciated.

License

MIT

Author

Vladimir Metnew vladimirmetnew@gmail.com

Package Sidebar

Install

npm i webpack-pkg-plugin-v4

Weekly Downloads

22

Version

2.0.4

License

MIT

Unpacked Size

2.66 kB

Total Files

4

Last publish

Collaborators

  • code-viking