Comments (8)
just to double check, you're putting the files in resources/templates/css
correct?
from cryogen-core.
Yes. I've also tried specifying other folders in the config file, but got the same result. Same with just renaming the given screen.css file to screen.scss.
from cryogen-core.
Hmm, yeah it looks like find-sass-files
might be getting a wrong folder. It looks for files in the folder that it's passed in here. The folder that's passed in is whatever the sass-src
key points to. That would be relative to project root.
I suspect it probably needs to be prefixed with resources/templates/
. In the meantime, perhaps try setting :sass-src "resources/templates/css"
and I suspect that should work.
from cryogen-core.
Ok, looks like the paths were the problem. I updated and tested locally, the template path and the output path should both get prefixed correctly now.
from cryogen-core.
That sounds probable; I'll verify your fix later. The regex looked fine, so an incorrect path sounds likely.
from cryogen-core.
I just pushed out a new version of cryogen-core to clojars so setting :sass-src "css"
rather than :sass-src "resources/templates/css"
should work now. Just update the dependency in your project.clj
file.
from cryogen-core.
Basic compilation seems to work fine now. Thank you both.
There are some oddities, but they aren't really related to this exact issue:
- the compiled .css file is kept in the
:sass-src
directory - the source .scss file is copied to the
:sass-dest
directory inpublic/
, as well as a.map
file :sass-dest
seems to be ignored, as setting:sass-src
to "scss" and:sass-dest
to "nil" will produce the .css file in "scss"- in this case, "scss" must be added to
resources
inconfig.edn
for this to work at all, but if users only want to separate their source CSS files from their SASS ones (e.g. CSS incss
and Sass inscss
) and have a single "css" output (e.g.css
), then this doesn't seem possible - I think this is as designed, but it might be something to reconsider
- in this case, "scss" must be added to
Sass also produces a .sass-cache
directory, which should probably be added to .gitignore
, but that might be better suited for the user's end (at least, Cryogen itself).
from cryogen-core.
I did notice the fact that the generated files don't get cleaned as well, but I guess that's a bit less of an issue. Perhaps it might make more sense to copy the sass files to the destination folder first and then compile them there.
from cryogen-core.
Related Issues (20)
- Change in clean-urls behaviour HOT 7
- Relax config schema
- Centred blue theme inconsistency HOT 1
- Changing `:public-dest` seems to break CSS/JS access HOT 6
- Compass is unmaintained since 2016 HOT 1
- Provide :preview-plaintext to every post, page for SEO HOT 1
- Provide an option to drop the date from file names HOT 2
- Should be able to configure the class on generated toc's HOT 1
- Proposal: Replace :content with :content-dom HOT 3
- An exception in compile-assets-timed should fail the build HOT 2
- Bug: cannot set a page as homepage HOT 1
- Overriding Config HOT 6
- Tags with special characters get a broken tag-output page. Like tag C# HOT 2
- <!-more-> marker characters HOT 5
- Adding `:posts` and `:pages` to params via :extend-params-fn does not behave as expected HOT 3
- Make :posts and :pages available in all posts and pages by default HOT 1
- Making css processing a plugin HOT 1
- Proposed enhancement: Automatically generate post metadata from plain markdown file HOT 9
- It would be nice to omit pages from prev/next if :page-index nil HOT 8
- Add header block for Google's 'Rich Snippets' nonsense HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cryogen-core.