Giter VIP home page Giter VIP logo

Comments (7)

skotchio avatar skotchio commented on May 16, 2024

@pgilad could you help me please?

from grunt-jade-usemin.

pgilad avatar pgilad commented on May 16, 2024

Hey, sorry for the delay in response. Yes grunt-jade-usemin doesn't scan jade blocks or included files. What you will need to do, is to add the included jade files to a src/target of their own.

so just add the layout.jade to a src/target in grunt and it should do the magic

from grunt-jade-usemin.

skotchio avatar skotchio commented on May 16, 2024

@pgilad thanks for the response, yes I've added assets on included page to their own block and it works. But I think you could add this feature in grunt-jade-usemin and it would be awesome.

If you will then we get opportunity to describe single js/css blocks on layout.jade page and bundled assets from other pages which is great for page load performance because we will have two asset requests at all (one request for js and request for css).

What do think about it and how hard to add this feature?

from grunt-jade-usemin.

pgilad avatar pgilad commented on May 16, 2024

It's not very hard, but I'd rather not have this plugin start scanning for dependent files, it will make this plugin too complicated.

You are welcome to submit a PR for that. I'd probably use a tool such as https://github.com/paulyoung/jade-inheritance for it. But you will need to add a flag for turning on such feature (default false), and then add those files are src/target manually

from grunt-jade-usemin.

skotchio avatar skotchio commented on May 16, 2024

@pgilad thank for the link. I'll explore it soon

from grunt-jade-usemin.

pgilad avatar pgilad commented on May 16, 2024

🐛 @skotchio bump... any news? can this be closed?

from grunt-jade-usemin.

skotchio avatar skotchio commented on May 16, 2024

@pgilad sory for delay. Yes sure close please

from grunt-jade-usemin.

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.