bertramdev / asset-pipeline

The core implementation of the asset pipeline for the jvm
194 stars 92 forks source link

BUG sass-asset-pipeline 3.3.4 - scss files not compiled during build #282

Open codeconsole opened 3 years ago

codeconsole commented 3 years ago

Example Grails 4.0.12 webapp: https://github.com/codeconsole/sassy (Also tested not working in Grails 5.0.0-RC3)

Steps to replicate:

grails create-app sassy
cd sasy
# add sass file and import in layout
./gradlew bootRun # verify works fine
./gradlew bootWar # BUG - no compiled scss .css files in build folder
java -jar ./build/libs/sassy-0.1.war # BUG 404s for all scss references

Tried importing both of the following ways

<asset:stylesheet src="sassy.css"/>
<asset:stylesheet src="sassy.scss"/> 
zearic commented 2 years ago

I have the same issue after upgrading to 5. dev is working fine with scss but not generating any css when building, just copy the scss files over.

codeconsole commented 2 years ago

@zearic copy them from where?

zearic commented 2 years ago

@zearic copy them from where?

copy the scss files over to build/asset folder and gz them. No converting/processing to css files.

zearic commented 2 years ago

spent some time on this. after switched to sass-dart-asset-pipeline, it works. just need to use --debug when gradle assemble to find any error when assetCompile and fix them. mostly path issue when @import