Skip to content

Commit ab96049

Browse files
committed
Document path customization.
1 parent a04df18 commit ab96049

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ compileSass {
4343
// Directory where to output generated CSS:
4444
outputDir = project.file ("${buildDir}/sass")
4545
46+
// Sub path where to copy generated CSS, eg relative to war root:
47+
destPath = "."
48+
4649
// Source directory containing sass to compile:
4750
sourceDir = project.file ("${projectDir}/src/main/sass")
4851
@@ -84,6 +87,15 @@ The easiest way to use this plugin is to apply it, along with the war
8487
plugin, and put your sass files under `src/main/sass`.
8588
See [samples/simple](samples/simple/build.gradle).
8689

90+
### With custom paths
91+
92+
You can customize the path where to pickup the SASS sources (`sourceDir`)
93+
as well as the path inside the war where to put the generated CSS (`destPath`).
94+
See [samples/custom-paths](samples/custom-paths/build.gradle).
95+
96+
Note that the `outputDir` is an intermediate folder where the CSS is output
97+
before being copied to the war. There should be no need to customize it.
98+
8799
### Without the war plugin
88100

89101
If you’re not using the war plugin,

0 commit comments

Comments
 (0)