It would be valuable to have more control over the formatting the css. My use case, detailed below, is to be able to remove the universal selector from each selector during output. It would also be useful to use output formatting to do pretty printing or to remove any extra whitespace. It would also be useful, in the context of showing css on an html page, to add the necessary markup to do syntax highlighting.
Use case: I'm processing css files to pull out the inlined images (background-image: dataurl()) into a separate file so it can be loaded on document ready. The input is one css file, the output is two css files, one with the background-images and the other without. the default formatting prepends all selectors with the universal selector (). I would like to remove the universal selector; it creates warings when doing css linting. If I had control of the output, I could remove the universal selector when creating the output files.
for example, where the current output is
*.foo { background-image: url(/images/foo.svg) }
i would like to output
.foo { background-image: url(/images/foo.svg) }
Anonymous
just made an new snapshot build available. Please try if this works for you
Please try with the latest snapshot.
fixed in 0.9.18
Output formating is available; time to close this.
Please open a new issue if you need more formatting options.