Package org.bladerunnerjs.plugin

Examples of org.bladerunnerjs.plugin.MinifierPlugin


    return minifierPlugins;
  }
 
  public MinifierPlugin minifierPlugin(String minifierSetting) {
    List<String> validMinificationSettings = new LinkedList<String>();
    MinifierPlugin pluginForMinifierSetting = null;
   
    for (MinifierPlugin minifierPlugin : minifierPlugins()) {
      for (String setting : minifierPlugin.getSettingNames()) {
        validMinificationSettings.add(setting);
       
View Full Code Here


 
  @Override
  public ResponseContent handleRequest(ParsedContentPath contentPath, BundleSet bundleSet, UrlContentAccessor contentAccessor, String version) throws ContentProcessingException {
    if (contentPath.formName.equals(DEV_BUNDLE_REQUEST) || contentPath.formName.equals(PROD_BUNDLE_REQUEST)) {
      String minifierSetting = contentPath.properties.get("minifier-setting");
      MinifierPlugin minifierPlugin = brjs.plugins().minifierPlugin(minifierSetting);
     
      List<InputSource> inputSources = getInputSourcesFromOtherBundlers(contentPath, bundleSet, contentAccessor, version);
      ResponseContent content = new CharResponseContent( bundleSet.getBundlableNode().root(), minifierPlugin.minify(minifierSetting, inputSources) );
     
      closeInputSources(inputSources);
     
      return content;
    }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.plugin.MinifierPlugin

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.