You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project used to have Sass stylesheets at some point but I had to revert it back to Less CSS due to io.js breaking node-sass compatibility with every release. Now that Node.js 4.0 is finally out, I think this is less of an issue.
Interestingly enough, according to this blog post (9/9/2015), Sass is currently a preferred choice for the CSS preprocessor.
Connect Assets
This leads us to connect-assets. I understand its usefulness, but it is also painfully slow and significantly affects start-up time for the application. This becomes an issue when you have to wait 3-5 seconds for your app to restart after making any changes. I would prefer to include sass middleware directly and not worry about automatic minification and concatenation of JS files. While you should always try to minify your assets and reduce number of requests for production-running apps, that's not an issue at all for smaller / hackathon projects.
I am opening this GitHub issue so we could discuss the changes proposed above, but if you like the changes then comment below with +1(:+1:).
The text was updated successfully, but these errors were encountered:
I would imagine the load time will again go up slightly after I add LESS or Sass stand-alone middleware, but still that's a pretty significant difference.
Update
More or less consistent ~1600ms with the Sass middleware. Around ~1800ms when comping Sass files for the first time.
Sass
This project used to have Sass stylesheets at some point but I had to revert it back to Less CSS due to io.js breaking node-sass compatibility with every release. Now that Node.js 4.0 is finally out, I think this is less of an issue.
Interestingly enough, according to this blog post (9/9/2015), Sass is currently a preferred choice for the CSS preprocessor.
Connect Assets
This leads us to connect-assets. I understand its usefulness, but it is also painfully slow and significantly affects start-up time for the application. This becomes an issue when you have to wait 3-5 seconds for your app to restart after making any changes. I would prefer to include
sass
middleware directly and not worry about automatic minification and concatenation of JS files. While you should always try to minify your assets and reduce number of requests for production-running apps, that's not an issue at all for smaller / hackathon projects.I am opening this GitHub issue so we could discuss the changes proposed above, but if you like the changes then comment below with +1(:+1:).
The text was updated successfully, but these errors were encountered: