0

I understand that I have to create an assets.coffee file that configures how to compile and combine files together and the run cake assets:compile to actually do it.

However, I tried that and I get the message: No such task: assets:compile

A related question - will Tower also handle inserting the files into the actual HTML (for example, a layout, or header or footer view)? Because the complied resource names are random every time, I cannot imagine it being some kind of manual work?

New Alexandria
  • 6,951
  • 4
  • 57
  • 77
ragulka
  • 4,312
  • 7
  • 48
  • 73

1 Answers1

0

The command for compiling assets is cake assets:bundle, https://github.com/viatropos/tower/blob/master/test/example/Cakefile#L15, which runs this method: https://github.com/viatropos/tower/blob/master/packages/tower-application/server/assets.coffee#L22

Daniel
  • 1,692
  • 2
  • 13
  • 19