Skip to content

Options

amarcruz edited this page Sep 24, 2016 · 1 revision

The default value follows the name

values: {}

This is a plain JavaScript 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.

keepLines: false

Do not remove lines with directives and excluded blocks from the output, instead replace them with empty lines.

Use this option with sourceMap:false if you are interested only in preserve line count.

prefixes: ['//', '/*']

String or array of strings with sequences that starts a directive. That is, the characters before the pound sign, usually the start of comments.

extensions: ['.js', '.jsx', '.tag']

String or array of strings that defines the extensions of the files to process in the allowed directories.*

Each value is compared against the node's extname result, so use '.' to include files without extension.

To include all the files, use the string '*' (don't use an array or the string '.*').

include: ''

Minimatch pattern or array of minimatch patterns. If omitted or empty, all the files will be included.

exclude: ''

Minimatch pattern or array of minimatch patterns of files to exclude from the preprocessing.

More about...

Clone this wiki locally