Skip to content

Commit

Permalink
rename minify
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Jipa committed Jan 6, 2016
1 parent 61b2c6a commit cd2f324
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class LessResourceHandler extends ClasspathResourceHandler {

private static final Logger log = LoggerFactory.getLogger(LessResourceHandler.class);

private boolean compress;
private boolean minify;
private Map<String, String> sourceMap = new ConcurrentHashMap<>(); // cache

public LessResourceHandler(String urlPath, String resourceBasePath) {
Expand All @@ -53,7 +53,7 @@ protected void sendResource(URL resourceUrl, RouteContext routeContext) throws I
if (result == null) {
ThreadUnsafeLessCompiler compiler = new ThreadUnsafeLessCompiler();
LessCompiler.Configuration configuration = new LessCompiler.Configuration();
configuration.setCompressing(compress);
configuration.setCompressing(minify);
LessCompiler.CompilationResult compilationResult = compiler.compile(resourceUrl, configuration);
for (LessCompiler.Problem warning : compilationResult.getWarnings()) {
log.warn("Line: {}, Character: {}, Message: {} ", warning.getLine(), warning.getCharacter(), warning.getMessage());
Expand All @@ -74,7 +74,7 @@ protected void sendResource(URL resourceUrl, RouteContext routeContext) throws I
}

public LessResourceHandler useMinimized(boolean minimized){
this.compress = minimized;
this.minify = minimized;
return this;
}

Expand Down

0 comments on commit cd2f324

Please sign in to comment.