gradle sass plugin


License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

com.unclezs
ArtifactId

ArtifactId

sass-gradle-plugin
Last Version

Last Version

1.0.7
Release Date

Release Date

Type

Type

module
Description

Description

gradle sass plugin
gradle sass plugin
Project URL

Project URL

https://github.com/unclezs/sass-gradle-plugin
Source Code Management

Source Code Management

https://github.com/unclezs/sass-gradle-plugin

Download sass-gradle-plugin

Dependencies

runtime (1)

Group / Artifact Type Version
io.bit3 : jsass jar 5.5.6

Project Modules

There are no modules declared in this project.

sass-gradle-plugin

gradle build GitHub license GitHub issues

基于 jsass 的sass编译插件

基本用法

引入插件

https://plugins.gradle.org/plugin/com.unclezs.gradle.sass

使用插件DSL:

plugins {
  id "com.unclezs.gradle.sass" version "1.0.10"
}

使用旧版插件应用程序:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.unclezs:sass-gradle-plugin:1.0.10"
  }
}

apply plugin: "com.unclezs.gradle.sass"
  • 在/resources/scss下编写scss和sass即可,会自动编译到/resources/css目录
  • 以_开头的文件将不会被编译.

自定义路径

sass {
  cssPath = "css"
  scssPath = "scss"
}

Versions

Version
1.0.7
1.0.5
1.0.4