naviapps / nw-builder-webpack-plugin

This is a Webpack plugin that wrapped nw-builder.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 value
development sdk
production normal

About

This is a Webpack plugin that wrapped nw-builder.

License:MIT License


Languages

Language:JavaScript 100.0%