Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
damianc opened this issue Feb 26, 2016 · 0 comments
Open

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

damianc opened this issue Feb 26, 2016 · 0 comments

Comments

@damianc
Copy link

damianc commented Feb 26, 2016

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant