gradle-css-plugin
gradle-css-plugin copied to clipboard
not copying to destination
css.source {
dev {
css {
srcDir "src/main/webapp/resources/less"
include "*.less"
}
}
}
println "css.source.dev.css.files"
println css.source.dev.css.srcDirs
println css.source.dev.css.files
lesscss {
source = css.source.dev.css.files
dest = "${buildDir}/styles"
}
println lesscss.dest
outputs:
css.source.dev.css.files
[C:\work\views\tms\proto\tms\web\src\main\webapp\resources\less]
[C:\work\views\tms\proto\tms\web\src\main\webapp\resources\less\test.less]
C:\work\views\tms\proto\tms\web\build\styles
but no files are being copied over to the destination. any advice?
I had the same problem Your destination folder location "dest" is not the same as your "source" folder location. The dest folder root is where you are running the command prompt from and where you run build.gradle. The source folder root is where a child build.gradle is invoked from the parent build.gradle.
I am facing two problems
- The tasks combineCss and minifyCss do not run after running once unless i change the name of the target folder in the build.gradle file. They dont run even if i delete the target folder or rename the target folder. 2.If i create a folder structure for the output folder the same structure gets created at the parent level and the child level. Secondly The structure created at the child level is empty while the structure created at the paretn build.gradle level has the combined css file and the minified css file.