Package org.jibeframework.core.util

Examples of org.jibeframework.core.util.JSMin.jsmin()


  public void onApplicationInitialized() {
    try {
      String js = getJavaScriptContent();
      ByteArrayOutputStream bos = new ByteArrayOutputStream();
      JSMin jsmin = new JSMin(new ByteArrayInputStream(js.getBytes()), bos);
      jsmin.jsmin();
      javaScriptsMinimized = bos.toString();
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here


    try {
      if (Application.isProduction()) {
        String css = getCSSContent();
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        JSMin jsmin = new JSMin(new ByteArrayInputStream(css.getBytes()), bos);
        jsmin.jsmin();
        cssMinimized = bos.toString();
      }
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.