This is an implementation of babelify. Available even if you have recursive folder structure.
- bash or zsh
- Node.js
- minify javascript
- converts ES6+ into ES5 using babelify
- enables to use
require()
orimport()
phrase in javascript using browserify
Install this package.
$ npm i -D babelify-impl
Add following setting to the .env
.
# babelify-impl settings
# if compress: production, if dont compress: development
NODE_ENV=production
# the directory in which the file exists
JS_PATH=resources/js/
# the directory to which the file compressed
JS_DIST_PATH=public/js/
Usage: babelify-impl <action>
Commands
build build es6+
watch watch es6+