Вот мой пакет. json файл и я пытаюсь запустить команду - 'npm run webpack'.
{
"name": "react-graphql2",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "webpack",
"dev": "webpack-dev-server",
"dev-https": "webpack-dev-server --https",
"prettier": "prettier --write './{src,tests}/**/*.{ts,tsx,js,jsx,json,css,scss}'",
"start": "yarn run build",
"test": "jest --coverage",
"testDev": "jest"
Когда я запускаю эту команду, я получаю вывод ниже, и пакет собран без проблем-
laks2@1976190:~/projects/spa-test/react-graphql2$ npm run build
> react-graphql2@1.0.0 build /Users/laks/projects/spa-test/react-graphql2
> webpack
webpack.config.js
clean-webpack-plugin: /Users/laks/projects/spa-test/react-graphql2/dist/js/*.js has been removed.
Теперь я перемещаю один и тот же проект в другую папку и запускаю ту же команду, теперь я не вижу, как передается пакет webpack.config. js -
laks2@1976190:~/projects/spa-test/react-graphql2$ npm run build
> react-graphql2@1.0.0 build /Users/laks/projects/spa-test/react-graphql2
> webpack
clean-webpack-plugin: /Users/laks/projects/spa-test/react-graphql2/dist/js/*.js has been removed.