Answer the question
In order to leave comments, you need to log in
How to make arguments in WebPack work?
Hello
, I have the following commands in packaje.json
"test": "echo \"Error: no test specified\" && exit 1",
"start": "npx webpack --config ./configs/webpack.config.js --watch",
"server": "node echo_server.js",
"dev": "concurrently --kill-others \"npm run server\" \"npm run start\""
const projectName = process.argv.splice(5)[0];
let file = `./${projectName}.config.js`;
const config = require(file);
module.exports = config;
npm run start orel
Insufficient number of arguments or no entry found.
Alternatively, run 'webpack(-cli) --help' for usage info.
ERROR in Entry module not found: Error: Can't resolve 'orel' in 'C:\Users\Администратор\
Desktop\game\webpack-demo'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question