1.0.3 • Published 7 years ago
webpack-pkg-plugin v1.0.3
Webpack-Plg-Plugin
Pkg your scripts into executable
Install
npm i --save-dev webpack-pkg-plugin
Usage
const WebpackPkgPlugin = require('webpack-pkg-plugin').WebpackPkgPlugin
// or with the new syntax (if your Node supports it):
// const {WebpackPkgPlugin} = require('webpack-pkg-plugin')
// And if you use modules:
// import {WebpackPkgPlugin} from 'webpack-pkg-plugin'
/*
...
*/
// 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