Featuring some of the C preprocessor characteristics through special, configurable comments, jscc can be used in any type of files to build multiple versions of your software from the same code base.
With jscc, you have:
* This feature allows you the conditional declaration of ES6 imports (See the example).
jscc is not a minifier tool, it only does well that it does...
npm i jscc -D
;;const source = fsconst result =
//#set _DEBUG 1/*#if _DEBUGimport mylib from 'mylib-debug';//#else */;//#endifmylib;
* jscc has the predefined
_VERSION varname, in addition to
You can read in the Wiki about:
This is work in progress, so please update jscc constantly, I hope the first stable version does not take too long.
* For me, write in english is 10x harder than coding JS, so contributions are welcome...
Don't forget to give me your star!