Added npm based scripts for bundling and minifying of the Javascript code. It requires 3 npm modules which in turn require a few others. Tried to keep it as low/simple as possible, while still using modern and stable products.
To install the relevant npm modules (before being able to perform bundling/minification):
npm install
Then to create the distributable files:
npm run build
Before pushing new changes to GitHub perform a npm run build to update the distribution files.
Option might be to add another script to package.json which does npm run build && git push of course ;-).
Added npm based scripts for bundling and minifying of the Javascript code. It requires 3 npm modules which in turn require a few others. Tried to keep it as low/simple as possible, while still using modern and stable products.
To install the relevant npm modules (before being able to perform bundling/minification):
Then to create the distributable files:
Before pushing new changes to GitHub perform a
npm run build
to update the distribution files.Option might be to add another script to
package.json
which doesnpm run build && git push
of course ;-).