Configuring bundle dependencies
You must list all non-development dependencies, including optional dependencies, in the
bundleDependencies property in
Keeping this list up to date manually is error-prone, so it's better to let the
slc build --bundle command to do it for you. However,
slc build does not modify the
bundleDependencies property if it is present, so you are free to maintain it yourself, if you wish (or to not use the bundle command).
Using a .npmignore file
.npmignore configuration file, file to exclude files from the build package, such as build output and project ephemera such as test output. If npm does not find an
.npmignore file, it uses
The bundle command will create an empty
.npmignore file if there is a
.gitignore file but there is not
.npmignore file. This will work for clean repositories, but if you have any project ephemera, they will get packed.
Create deploy package, either: