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
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 |