nw-builder-webpack-plugin

1.1.0 • Public • Published

NW.js Builder Webpack Plugin

This is a Webpack plugin that wrapped nw-builder.

Getting Started

Installation

npm install --save-dev nw-builder-webpack-plugin

Usage

webpack.config.js

const NwBuilderWebpackPlugin = require('nw-builder-webpack-plugin');
 
module.exports = {
  // ...
  plugins: [
    // ...
    new NwBuilderWebpackPlugin({
      platforms: ['osx64', 'win32', 'win64'],
      version: '0.24.1',
    })
  ]
};

Options

See nw-builder#Options

Change default value

options.files

nw-builder: null
nw-builder-webpack-plugin: ${output.path}/**/**

Change default value

options.flavor

nw-builder: sdk
nw-builder-webpack-plugin: mode === 'development ? 'sdk' : 'normal'

mode value
development sdk
production normal

Package Sidebar

Install

npm i nw-builder-webpack-plugin

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

3.97 kB

Total Files

4

Last publish

Collaborators

  • naviapps