Skip to content

Makes executables from your scripts with Webpack.

License

Notifications You must be signed in to change notification settings

haohetao/webpack-pkg-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack-Pkg-Plugin-v4

Updated to be compatible with webpack v4

Pkg your scripts into executable

Install

  npm i --save-dev haohetao/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 Thanks to @BryanSummers14 for Webpack v4 support!

About

Makes executables from your scripts with Webpack.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%