3 ms·
What do you think of browserify coupled with transforms providing html templates[1] and css inclusion[2]. [1]: E.g., https://npmjs.org/package/browserify-jade
by Bockit 13y ago
What do you think of browserify coupled with transforms providing html templates[1] and css inclusion[2].
[1]: E.g., https://npmjs.org/package/browserify-jade https://npmjs.org/package/browserify-jade
[2]: E.g., https://npmjs.org/package/stylify https://npmjs.org/package/stylify
- wyuenho 13y agopackage.json doesn't have any place to define the styles and templates your component exports, so browserify can't meaningfully resolve dependencies and build your assets for you. For really good support, you'll need to be able to rewrite the URLs inside CSS too due to different directory structures within each component. Component does that for you.
- Bockit 13y agoThat's a pretty fair point about the CSS url rewriting, it's possibly the kind of thing you can fix with a browserify transform, but iffy and as you say component is doing it already.