Comments (4)
Sounds like a bug in watchify. Jadeify does not do any file watching.
from jadeify.
This is a problem with browserify in general. It does not allow any way for transforms like jadeify to register the additional dependencies, so if you do dynamic caching (as watchify and browserify-middleware do) then you miss the changes to those dependencies. The issue is that the jade compiler doesn't generate code with require
s in it, instead it inlines the result of compiling those files.
from jadeify.
@ForbesLindesay this is the only thing that I dislike about jade that it inlines dependencies. This is especially bad for front-end templates, because of code duplication in compiled templates.
A good example of this is nunjucks template. I contributed to nunjucksify project where template inclusion is found in compiled code with regexp and corresponding require
calls are prepended to the transformed file, so it uses browserify for dependency management.
from jadeify.
Fixed by #19 and released as 3.0.0.
from jadeify.
Related Issues (20)
- Support jade.compileFile HOT 4
- Options in js? HOT 8
- Unexpected character # expected ` `, `\n`, `,`, `!` or `=` HOT 4
- Command line issue "has no method 'compileClient' while parsing file"
- Recommemded i18n implementation to use with Jadeify? HOT 2
- Fatal error: Cannot set property 'filename' of undefined HOT 4
- SyntaxError: Unexpected token HOT 2
- Peer dependencies are preventing usage of latest version of browserify HOT 1
- Where does entry.js come from? HOT 1
- Using jadeify as a dependency HOT 2
- Not compile to index.html HOT 1
- Peer dependencies error with Browserify v11 HOT 1
- Support exporting dynamicMixins somehow HOT 2
- Support extends HOT 1
- Allow ignore config HOT 3
- npm ERR! peerinvalid Peer [email protected] wants browserify@>= 2.4.0 < 12 HOT 2
- using with tsify plugin, only jade in the index.ts file is interpolated
- Feature: Option to Pre-compile Jade to Static Strings
- What about rename of 'jade' project to 'pugjs'? HOT 1
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 jadeify.