Comments (7)
@pgilad could you help me please?
from grunt-jade-usemin.
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.
@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.
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.
@pgilad thank for the link. I'll explore it soon
from grunt-jade-usemin.
🐛 @skotchio bump... any news? can this be closed?
from grunt-jade-usemin.
@pgilad sory for delay. Yes sure close please
from grunt-jade-usemin.
Related Issues (20)
- Feature request: Incorporate file revision hash HOT 5
- filerev usage HOT 7
- Create examples.md which shows various usages examples
- Plugin fails when minblock has no tags
- Add option to specify destination directory for taks HOT 12
- It's not clear how to add config for tasks HOT 3
- filerev task doesn't work when using the same output file per two pages HOT 3
- filerev task doesn't work when using the same output file per two pages with targetPrefix HOT 1
- Unable to use absolute path to compiled source HOT 12
- How to override source js/css files with revved ones? HOT 6
- Source Maps HOT 2
- Warning: Task "concat:jadeUsemin-css" not found. HOT 15
- Should we fail when script src does not exist? HOT 2
- Pug files are not processed HOT 2
- possibly wrong warning on css&js build types HOT 3
- Task "concat:jadeUsemin" not found HOT 2
- Feature request - write target jade files after replacing build blocks
- Image path in css is not being replaced with relative or absolute path HOT 9
- location is not defined HOT 6
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 grunt-jade-usemin.