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

Refuses to launch for non js files #10

Closed
jtheoof opened this issue Jan 20, 2016 · 3 comments
Closed

Refuses to launch for non js files #10

jtheoof opened this issue Jan 20, 2016 · 3 comments

Comments

@jtheoof
Copy link

jtheoof commented Jan 20, 2016

Running:

$ devtool grunt concat
Error: ENOENT: no such file or directory, stat 'grunt.js'
    at Error (native)

Also:

$ devtool /usr/local/bin/grunt concat
Error: ENOENT: no such file or directory, stat '/usr/local/bin/grunt.js'
    at Error (native)

So it looks like devtool is really expecting a js file but should accept any node file.

@halhenke
Copy link

Yep, heres the relevant code:

https://github.com/Jam3/devtool/blob/master/server.js#L77-L79

@mattdesl
Copy link
Contributor

The same problem happens when you do this:

node gulp watch

Because gulp is not a file that can be found. Instead, you will have to do this:

node node_modules/gulp/bin/gulp.js watch

Or, with devtool@1.2.1 or newer:

devtool node_modules/gulp/bin/gulp.js -c -- wach

Hope that clears things up. 😄

@mattdesl
Copy link
Contributor

Closing this since it's not a bug.

Latest code also improves the entry file resolving so it works just like node foo/ (and will look for index.js).

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

3 participants