Search code examples
javascriptjquerycoffeescriptyui

Include multiple JavaScript files in CoffeeScript


does CoffeeScript have someting that can say: include this, that file. so the JS files are spread and modular but a "compiling" brings them together.


Solution

  • No. CoffeeScript files map 1-to-1 with their .js counterpart. The bundling you describe is possible with other projects such as requirejs and browserify, among several others.