Tuesday 23 May 2017

Babili minifies but does not transpile

I am stuck with babili.

I need to transpile, then minify the javascript that is written in ES6. So I installed the package using:

npm install babili --save-dev

and made .babelrc file containing a preset:

{"presets": ["es2015"]}

Now I tried the following command

./node_modules/.bin/babili public/js/rt.socket.js --out-file public/test.min.js

It does give a minified but doesn't transpile. What could be the reason for this? `



via Suhail Gupta

No comments:

Post a Comment