-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per view js / less compilation #34
Comments
Actually the project does have per page less/css. If you create a page specific less file in /less such as `colors-api.less' it will be compiled and minified separately. Then include the page specific css in the jade template like so:
I think it also makes sense to have per view specific js but since just about everything is done via libraries anyway I did not build it out - I just reference the .js file via a script tag. |
Thanks Dan. That makes sense. I am trying to get the client side js to conform to the CommonJS standard by using browserify. Will definitely send a change request if/when I get it figured out. |
Great - definitely send a PR. Side note - why Browserify instead of Webpack? On Sun, Feb 1, 2015 at 11:19 PM, kungfoolabs notifications@github.com
|
LOL. Because i didn't know about Webpack. Will check it out. |
Great project and awesome for getting started. One thing that is that currently missing the per view js and css compilation. Looking at drywall, this was something that was present and made it easy to have backbone, for example. integrated only on some of the pages. Not sure the recommended way, but I am looking into using browserify.
The text was updated successfully, but these errors were encountered: