-
Notifications
You must be signed in to change notification settings - Fork 7
Options
There's a few options that you can pass to jscc in a plain JavaScript object:
(default value follows the name)
This is a plain object defining the variables used by jscc during the preprocessing.
Each key is a varname matching the regex /_[0-9A-Z][_0-9A-Z]*/, the value can have any type.
There's two predefined varnames: _FILE and _VERSION.
String with the type of quotes to escape in the output of strings: 'single', 'double' or 'both'.
It does not affects the strings contained in the JSON output of objects.
Allows to preserve the empty lines of directives and blocks that were removed.
Use this option with sourceMap:false if you are interested only in preserve the line count.
String or array of strings with sequences that starts a directive. That is, the characters before the pound sign, usually the start of comments.
Set this option to false to suppress the creation of the sourcemap.
Note: In plugins such as jscc-brunch, this options will take the value given by the main tool, unless it is explicitly defined as false.
Include the original source in the sourcemap, if the sourceMap option is not false.
Makes a hi-res sourcemap, if the sourceMap option is not false.