I am having an issue where my grunt build file is building correctly, but the website I'm working on is not getting all of the css files. It is only getting the master.css file. I'm using nodejs, with kraken, on top of express. I can't tell if there is some configuration option I need to change, I don't really know where I would do that.
-
1Which CSS library are you using? Is this a Kraken app built with the generator? What grunt tasks do you have loaded?aredridel– aredridel2014-12-29 20:23:12 +00:00Commented Dec 29, 2014 at 20:23
-
I'm using LESS, it is built with the generator, and the grunt tasks I have loaded are build, less, copyto, requirejs, automation, automationci, concat, uglify, jshint... I think it's possible that this is an issue from us switching from angular to backbone w/ dust... which is still a config issue though.RadleyMith– RadleyMith2014-12-29 20:54:27 +00:00Commented Dec 29, 2014 at 20:54
-
When you say your website is not getting all css files do you mean they are not part of the resources? Are your <link> tags getting appended automatically or are you using express.static middleware?skud– skud2014-12-30 15:52:29 +00:00Commented Dec 30, 2014 at 15:52
-
yeah, it wasn't getting all of the resources, it was a combo of me having a typo in my partial to add CSS, and that the CSS wasn't getting copy-to'd the right folderRadleyMith– RadleyMith2014-12-30 16:27:10 +00:00Commented Dec 30, 2014 at 16:27
1 Answer
For anyone interested, the issue was with the changing structure of the project. Going from angular to a dustjs w/ backbone combo changes the project form a SPA structure to a multi-page structure. This makes a huge difference because now instead of sending everything at once we are sending pages as they are needed, this also means that when a user switches to a different view, the server will be building an html version of that view and sending it back as fully fleshed out html. When the server builds the page it has access to the file structure, which means that the build folder that was necessary for the angular project, is no longer necessary.