Which files can you remove from nw.js

Summary:
Just in case someone needs to make the package a bit smaller, I decided to write this tutorial.

What files are required to run the game:
This is how a deployed RMMV game folder looks like. Maybe RMMZ is similar but we are talking about nw.js here, so the game files are not important.
1723866982912.png

swiftshader folder is usually empty, so leaving it won't do any harm to the total size.
You can delete all files inside locales folder, except en-US.pak
nw.dll and credits.html is growing bigger and bigger because new features are being added, but you can't really remove them.

You can also insert a line in package.json to ensure en-US is used just in case. But I didn't see any side effect without it. See below:
JSON:
{
    "name": "game name here",
    "main": "www/index.html",
    "js-flags": "--expose-gc",
    "chromium-args": "--lang=en-US",
    "window": {
        "title": "fill this if you like",
        "toolbar": false,
        "width": 816,
        "height": 624,
        "icon": "www/icon/icon.png"
    }
}

What does the folder look like before:
For reference, this is how the folder look like before some files are removed.
Please notice some files may be different in different versions.
1723867219639.png

This is the locales folder.
1723867380847.png


The tutorial was written when Nw.js 0.89.0 was released. It is not granted nw.js won't change in the future.

Original thread: https://forums.rpgmakerweb.com/threads/which-files-can-you-remove-from-nw-js.171148/