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

Unable to read "src" file (Error code: EISDIR) #51

Closed
ptitgraig opened this issue Oct 7, 2016 · 0 comments
Closed

Unable to read "src" file (Error code: EISDIR) #51

ptitgraig opened this issue Oct 7, 2016 · 0 comments

Comments

@ptitgraig
Copy link
Collaborator

I get the following error Unable to read "src" file (Error code: EISDIR) with the following config:

target: {
       options: {
           relative: false,
           template: '<%= settings.target %>/<%= settings.app %>/index.html',
           destFile: '<%= settings.target %>/<%= settings.app %>/index.html',
        },
        files: {
                src : [
                    '<%= settings.app %>/modules/app.module.js'
                ]
            }
        }
}

There is a non handle case when trying to define lineEnding from destination file.
If options.destFile is defined, it gets overriden every time by src .
Error is in getDefaultLineEnding().

ptitgraig pushed a commit to ptitgraig/grunt-injector that referenced this issue Oct 7, 2016
@ptitgraig ptitgraig mentioned this issue Oct 7, 2016
ptitgraig added a commit that referenced this issue Oct 10, 2016
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