webpack / webpack-cli

Webpack's Command Line Interface
https://webpack.js.org/api/cli
MIT License
2.56k stars 603 forks source link

import-local doesn't make sense #1318

Closed alexander-akait closed 4 years ago

alexander-akait commented 4 years ago

Describe the bug

import-local package does not prefer the local installation of webpack-cli, it only allows you to check whether the local launch or global

What is the current behavior?

Code exists and does nothing

To Reproduce Steps to reproduce the behavior:

  1. webpack or node packages/webpack-cli/bin/cli.js

Expected behavior

Code should be removed or improved, example of the improvement https://github.com/avajs/ava/blob/master/cli.js

Screenshots

No need

  System:
    OS: Linux 5.3 Ubuntu 19.10 (Eoan Ermine)
    CPU: (6) x64 AMD FX(tm)-6300 Six-Core Processor
    Memory: 1.05 GB / 11.73 GB
  Binaries:
    Node: 10.15.2 - /usr/bin/node
    Yarn: 1.13.0 - /usr/bin/yarn
    npm: 6.14.2 - /usr/local/bin/npm
  Browsers:
    Chrome: 80.0.3987.132
    Firefox: 73.0.1
  npmPackages:
    webpack: ^4.42.0 => 4.42.0 
  npmGlobalPackages:
    webpack-cli: 3.3.6

Additional context

No

snitin315 commented 4 years ago

@evilebottnawi I would like to work on this.

alexander-akait commented 4 years ago

Need investigate - should we remove it or improve, wait other developers

snitin315 commented 4 years ago

+1 for removal.

snitin315 commented 4 years ago

Let's open a PR and move the discussion there.

alexander-akait commented 4 years ago

:+1: