JS Bundler
This bundler has three main functionalities:
- Compile JS code and write it to the ./public/dist/ folder
- Watch for changes in the ./resources/assets/js/ folder
- Minifies code when using the --minify flag
How to use
Install using NPM: npm install ss-js-bundler
Install using Yarn: yarn add ss-js-bundler
Development
node ./node_modules/ss-js-bundler/src/cli.js build --target ./resources/assets/js/app.js --destination ./public/dist/app.js
Watcher
node ./node_modules/ss-js-bundler/src/cli.js watch --target ./resources/assets/js/app.js --destination ./public/dist/app-watcher.js
Production
node ./node_modules/ss-js-bundler/src/cli.js build --target ./resources/assets/js/app.js --destination ./public/dist/app.js --minify