Code Monkey home page Code Monkey logo

Comments (3)

ixti avatar ixti commented on May 21, 2024

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.

eddanger avatar eddanger commented on May 21, 2024

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.

ixti avatar ixti commented on May 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.