Skip to content

Can't get how to use it #4

@bsurai

Description

@bsurai
  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions