@SupportedResourceType(value=CSS) public class CssImportPreProcessor extends AbstractCssImportPreProcessor
@import statement. It is implemented as both:
preProcessor & postProcessor. It is necessary because preProcessor is responsible for updating model with found
imported resources, while post processor removes import occurrences.
When processor finds an import which is not valid, it will check the
WroConfiguration.isIgnoreMissingResources() flag. If it is set to false, the processor will fail.| Constructor and Description |
|---|
CssImportPreProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
doTransform(String cssContent,
List<Resource> foundImports)
Perform actual transformation of provided cssContent and the list of found import resources.
|
protected String |
removeImportStatements(String cssContent) |
findImports, getContextMap, isImportAware, onImportDetected, onRecursiveImportDetected, processpublic static final String ALIAS
protected String doTransform(String cssContent, List<Resource> foundImports) throws IOException
doTransform in class AbstractCssImportPreProcessorcssContent - the css to transform.foundImports - the list of found imports.IOExceptionCopyright © 2008-2014. All Rights Reserved.