Fixes #632 - adds disabling remote imports.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Tue, 18 Aug 2015 06:45:52 +0000 (07:45 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Tue, 25 Aug 2015 07:01:51 +0000 (08:01 +0100)
commita2f8bac6f9adceec08c47238348077d748556f8d
tree2ac71294e845ffc952a485e447600ce6d061ca52
parent21a9399ca86a5cac4eb6c1e8ce083e27aab0b107
Fixes #632 - adds disabling remote imports.

So far we only had an option to skip inlining of all imports, but
with this commit a fine-grained control is added, e.g. import from
all but fonts.googleapis.com:

API: `new CleanCSS({ processImportFrom: ['!fonts.googleapis.com'] })`
CLI: `cleancss --skip-import-from fonts.googleapis.com`

To skip all local imports:

API: `new CleanCSS({ processImportFrom: ['remote'] })`
CLI: `cleancss --skip-import-from local`

To skip all remote and certain local imports:

API: `new CleanCSS({ processImportFrom: ['local', '!path/to/file'] })`
CLI: `cleancss --skip-import-from remote,path/to/file`
History.md
README.md
bin/cleancss
lib/clean.js
lib/imports/inliner.js
test/binary-test.js
test/protocol-imports-test.js