less-plugin-clean-css icon indicating copy to clipboard operation
less-plugin-clean-css copied to clipboard

processImport always false

Open squiddle opened this issue 10 years ago • 1 comments
trafficstars

Why is the clean-css option processImport forced to be false. We also import some css files and would want them to be inlined as well. Is there any specific reasoning behind it?

squiddle avatar May 26 '15 08:05 squiddle

its because the following less would inline

@import (inline) "file.css";

and the following would leave as-is

@import (css) "file.css";

with the 2nd one being the default, so I didn't want less specified directive being overridden by the minifier.

but we should probably only default it to false and allow it to be overridden and I would accept a PR to do that, can't imagine it is much work.

lukeapage avatar May 26 '15 08:05 lukeapage