Skip to content

Specific position for requires #36

@B7th

Description

@B7th

For a node project, I would like to have my index.coffee file using to do like such:

#= require <vendor>
#= require <functions>
(($) ->
  #= require <form-elements>
  #= require <main-site>
) jQuery

Unfortunately, instead of going where I expect them to go, they end up at the top of the file - which is the programmed intended action, but not what I am looking for.

I would like to be able not to always write the ready function for all files.

Is there a way to compile/concat coffeescript that can put included files at specific positions, say inside a function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions