JSPM

nw-builder-webpack-plugin

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q37134F
  • License MIT

NW.js builder plugin for Webpack

Package Exports

  • nw-builder-webpack-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nw-builder-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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