nw-builder: [BUG] "devDependencies" modules NOT IGNORED when zipping App
Steps to reproduce the bug:
- put “devDependencies” inside your package.json with all your desired dependences (including nw-builder itself)
- Run
npm install
- Run
nwbuild --platforms win64 .\your_app\path
In the log you can see how \node_modules\nw-builder\...
and other modules that are only for a development environment are zipped, causing the final exe to be inflated with all those inservible modules.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (7 by maintainers)
Copy everything but
node_modules
to a temporary directory andnpm install --production
should be much easier to implement.