com.github.fgiannesini.libsass.gradle.plugin.tasks.CompileLibSassTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libsass-gradle-plugin Show documentation
Show all versions of libsass-gradle-plugin Show documentation
A gradle plugin to compile scss with libsass.
package com.github.fgiannesini.libsass.gradle.plugin.tasks;
import org.gradle.api.DefaultTask;
import org.gradle.api.tasks.TaskAction;
import io.bit3.jsass.CompilationException;
/**
* LibSass compilation task call
*/
public class CompileLibSassTask extends DefaultTask {
@Override
public String getDescription() {
return "Compile sass/scss files to css (with optional source map) with LibSass";
}
@TaskAction
public void compileLibSass() throws CompilationException {
final CompileLibSassTaskDelegate compileLibSassTaskDelegate = new CompileLibSassTaskDelegate(
this.getProject(), this.getLogger());
compileLibSassTaskDelegate.compile();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy