Package ro.isdc.wro.model.resource.processor.impl.css

Examples of ro.isdc.wro.model.resource.processor.impl.css.CssCompressorProcessor


  private void populateProcessorsMap(final Map<String, ResourcePreProcessor> map) {
    map.put(CssUrlRewritingProcessor.ALIAS, new CssUrlRewritingProcessor());
    map.put(CssImportPreProcessor.ALIAS, new CssImportPreProcessor());
    map.put(LessCssImportPreProcessor.ALIAS, new LessCssImportPreProcessor());
    map.put(CssVariablesProcessor.ALIAS, new CssVariablesProcessor());
    map.put(CssCompressorProcessor.ALIAS, new CssCompressorProcessor());
    map.put(SemicolonAppenderPreProcessor.ALIAS, new SemicolonAppenderPreProcessor());
    map.put(CssDataUriPreProcessor.ALIAS, new CssDataUriPreProcessor());
    map.put(FallbackCssDataUriProcessor.ALIAS, new FallbackCssDataUriProcessor());
    map.put(DuplicatesAwareCssDataUriPreProcessor.ALIAS_DUPLICATE, new DuplicatesAwareCssDataUriPreProcessor());
    map.put(JawrCssMinifierProcessor.ALIAS, new JawrCssMinifierProcessor());
View Full Code Here


* @author Alex Objelean
*/
public class TestCssCompressorProcessor {
  @Test
  public void testFromFolder() throws IOException {
    final ResourcePostProcessor processor = new CssCompressorProcessor();

    final URL url = getClass().getResource("cssCompressor");

    final File testFolder = new File(url.getFile(), "test");
    final File expectedFolder = new File(url.getFile(), "expected");
View Full Code Here

  }
 

  @Test
  public void shouldSupportCorrectResourceTypes() {
    WroTestUtils.assertProcessorSupportResourceTypes(new CssCompressorProcessor(), ResourceType.CSS);
  }
View Full Code Here

    return uriLocatorFactory;
  }
  protected ProcessorsFactory newProcessorsFactory()
  {
    final SimpleProcessorsFactory processorsFactory= (SimpleProcessorsFactory) super.newProcessorsFactory();
    processorsFactory.addPreProcessor(new CssCompressorProcessor());
    processorsFactory.addPreProcessor(new JSMinProcessor());
    return processorsFactory;
  }
View Full Code Here

   * processor can be used as both: PreProcessor & postProcessor.
   *
   * @return A new {@link CssCompressorProcessor}.
   */
  public static ResourcePostProcessor cssCompressor() {
    return new ConditionalProcessor(new CssCompressorProcessor(), NO_DEV);
  }
View Full Code Here

TOP

Related Classes of ro.isdc.wro.model.resource.processor.impl.css.CssCompressorProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.