Skip to content

Commit

Permalink
Disable referencing CSS Source Map using Less compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker committed Jan 29, 2020
1 parent 313f436 commit fca775e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import com.github.sommeri.less4j.Less4jException;
import com.github.sommeri.less4j.LessCompiler;
import com.github.sommeri.less4j.LessCompiler.Configuration;
import com.github.sommeri.less4j.LessSource;
import com.github.sommeri.less4j.core.ThreadUnsafeLessCompiler;
import juzu.asset.AssetLocation;
Expand Down Expand Up @@ -68,7 +69,9 @@ protected String getSource() {
public InputStream open(String s, URLConnection resource) throws IOException {
LessCompiler compiler = new ThreadUnsafeLessCompiler();
try {
LessCompiler.CompilationResult result = compiler.compile(resource.getURL());
Configuration configuration = new Configuration();
configuration.setLinkSourceMap(false);
LessCompiler.CompilationResult result = compiler.compile(resource.getURL(), configuration);
return new ByteArrayInputStream(result.getCss().getBytes());
}
catch (Less4jException e) {
Expand Down

0 comments on commit fca775e

Please sign in to comment.