Comments (3)
Can you please explain in details what exactly do you want to achieve? If you want to have a map of "logical name" (e.g. app.css
) to "digest path" (e.g. app-14758f1afd44c09b7992073ccf00b43d.css
) then I think it's better to add a manifest.json file (core feature of Sprockets) that will contain desired map.
from jekyll-assets.
Hi Aleksey,
I simply want to generate two files, one digest version (when cachebust
is set to hard
) and one regular non-digest version in a predictable location such as /assets
The non-digest assets will be used by an external site not compiled with Jekyll.
I've hacked my sites to create the non-digest assets by using the Liquid tag asset
as the only thing in the file. This works for now, but would like a more permanent method to always generate non-digested assets along with digested ones.
from jekyll-assets.
After some thinking (OK it was 2 months of thinking, sorry) I tend to close this issue. I don't see this feature as part of the plugin core. To avoid kludges with empty file, you can add small one-liner into the site building pipeline (task):
find assets -type f | grep -v '\.gz$' | while read f; do cp $f $(echo $f | sed -r 's/-[a-f0-9]{32}(\.[^.]+)$/\1/'); done
from jekyll-assets.
Related Issues (20)
- [SassC::FunctionsHandler] undefined method `asset_path' HOT 7
- magick:flip does not work, passes extra cli argument
- FileStore caching under Sprockets 4.x / Issue with `digest_path` HOT 4
- Dependabot can't resolve your Ruby dependency files
- Get a list of assets processed in SCSS file so they can be preloaded
- Where in worlds name is the documentation for Jekyll assets 2, because I cannot get 3 to work and can't find any links whatsoever on 2. HOT 1
- Warnings on Ruby 2.7
- Auto-generate image width and height into html
- Can not run bundle install because jekyll-assets dependency on macOS Catalina
- Uglifier issue: Extra configuration is required for Uglifier 3.x to support ES6 in production mode (it is supported in development mode) #2755 HOT 1
- Jekyll-assets ~> 3.0 does not support Jekyll 4.2.0 HOT 3
- Uglifier/UglifyJS doesn't support modern ES6 HOT 2
- Can't figure out how to insert an image HOT 2
- SCSS AutoPrefixer Doesn't output any prefixes.
- CDN destination is treated as boolean
- Dependabot can't resolve your Ruby dependency files
- Release please HOT 5
- asset_path is scss is never called HOT 3
- Asset helpers not working post upgrading to ruby 2.7 HOT 1
- pages: Jekyll-Assets deployment URL is wrong (this repo)
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 jekyll-assets.