Skip to content

Can't get how to use it #4

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

Open
bsurai opened this issue Nov 20, 2017 · 1 comment
Open

Can't get how to use it #4

bsurai opened this issue Nov 20, 2017 · 1 comment

Comments

@bsurai
Copy link

bsurai commented Nov 20, 2017

  1. Does it work with Webpack 2 ?

  2. I have shebang #!/usr/bin/env node in .js file. What and where do I have to write to handle shebang with Webpack 2?

In the .js file I tried next
var command = require("shebang-loader!/usr/bin/env node");
var command = require("shebang-loader!/../bin/env node");
var command = require("shebang-loader!/../bin/command");
With all cases I had got an error

ERROR in ./src/execute-command-from-cli.js
Module not found: Error: Can't resolve '/usr/bin/env node' in '/home/surai/Documents/vs project/signage-viewer-linux/src'
 @ ./src/execute-command-from-cli.js 2:14-57
@WouterVanherck
Copy link

WouterVanherck commented Mar 9, 2018

While it didn't help me personally, the thread in issue #2 described how to do this

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

2 participants