You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Does it work with Webpack 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
The text was updated successfully, but these errors were encountered: