Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack explicit path could be omitted from "build" and "start" scripts under package.json file #60

Open
ashieshkumar90 opened this issue Nov 13, 2024 · 0 comments

Comments

@ashieshkumar90
Copy link

To work across all platforms including windows, explicit path of webpack could be omitted as NPM handles this automatically. With explicit path getting error "'node_modules' is not recognized as an internal or external command" on Windows machine.

From:
"build": "node_modules/.bin/webpack --config webpack.config.js",
"start": "node_modules/.bin/webpack serve --config webpack.config.js --open"

To:
"build": "webpack --config webpack.config.js",
"start": "webpack serve --config webpack.config.js --open"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant