Skip to content

Optimizer looks for files .js instead of .coffee when one exists #70

Description

@damianc

The problem is the optimizer looks for .js file when one exists.
The main file looks as follows:

require(['cs!coffee/models/Account'], function (Account) {
    // ...
});

Then, when I run Grunt task, following is printed:

>> Error: ENOENT: no such file or directory, open
>> '/home/dc/kiapp/assets/js/coffee/models/Account.js'

As you see, cs looks for .js file. Note that when I type a file that doesn't exist:

require(['cs!coffee/models/AccountABCDEF'], function (Account) {
    // ...
});

Optimizer does look for .coffee file!

>> Error: ENOENT: no such file or directory, open
>> '/home/dc/kiapp/assets/js/coffee/models/AccountABCDEF.coffee'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions