0

I like to server css and js files (or combine them to one minified) which are stored in a separate folder, which is not located in the public directory.

I have found this: node.js sending css files

How can i render a express jade template including the dynamically added css / js files?

2
  • 1
    Generally, I'd say this would be better suited as a build step than an active feature of the application -- combine the "source" files into their "public" equivalents and serve the generated "public" files with static. Tools such as Grunt, especially with its collection of plugins, can help with the building. Commented Apr 16, 2013 at 7:19
  • Thank you very much! this is also interesting: github.com/piscis/piler-compat Commented Apr 16, 2013 at 8:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.