Merge coffeescript files to one?
I'm trying to complie a bunch of .coffeescript files from a plugin into to one .js file. but the .coffee() function in mix does not seem to accept multiple lines and the .scripts() function does not accept any .coffee files.
So instead of this: .coffee('/part_1.coffee', 'public/js/') .coffee('/part_2.coffee', 'public/js/')
.scripts([ 'public/js/part_1.coffee.coffee', 'public/js/part_2.coffee.coffee', ], 'mycoffee.js');
I'm looking for a way to do this: .coffeescripts([ 'public/js/part_1.coffee.coffee', 'public/js/part_2.coffee.coffee', ], 'mycoffee.js');
I tried using .combine() to comine the coffee files together before converting them to .js .combine([ 'public/js/part_1.coffee.coffee', 'public/js/part_2.coffee.coffee', ], 'mycoffee.coffee');
but this throws an error when the mycoffee.coffee file is being converted:
"Module parse failed: Unexpected character '#' (3:4)"
I'm guessing this happens because the .compile file is not respecting correct coffescript formatting, but I don't know.
Please or to participate in this conversation.