nexe-webpack-plugin

Webpack plugin to emit binary package compiled by nexe

Usage no npm install needed!

<script type="module">
  import nexeWebpackPlugin from 'https://cdn.skypack.dev/nexe-webpack-plugin';
</script>

README

nexe-webpack-plugin

Webpack plugin to emit binary package compiled by nexe

Getting Started

Installation:

$ npm install -D nexe-webpack-plugin

Configuration:

webpack.config.js

const { NexePlugin } = require('nexe-webpack-plugin');
const { resolve } = require('path');

module.exports = {
  mode: 'development',
  entry: './entry.js',
  output: {
    path: resolve(__dirname, 'build'),
  },
  plugins: [
    new NexePlugin({
      output: 'sample-bin',
    }),
  ],
};

This emits build/entry.js and build/sample-bin that is compiled by nexe.

License

MIT © fmatzy