Webpack makes a folder and a file the same name

Viewed 77

Webpack makes a folder and a file with the same name. What am I doing wrong?

enter image description here

.
└── main.js
    └── main.js

In package.json

  "scripts": {
    "dev": "webpack --mode development --watch ./leadmanager/frontend/src/index.js --output-path ./leadmanager/frontend/static/frontend/main.js",
    "build": "webpack --mode production ./leadmanager/frontend/src/index.js --output-path ./leadmanager/frontend/static/frontend/main.js"
  }
0 Answers
Related