-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
scripts: Unknown command or entry 'index=./src/frontend/index.js' #34236
Comments
It looks like webpack 5 handles entry points differently when passed through CLI: https://webpack.js.org/api/cli/#entry vs https://v4.webpack.js.org/api/cli/#usage-without-config-file It's very likely that we can remove special handling added for webpack 4 from: gutenberg/packages/scripts/utils/config.js Lines 112 to 142 in 9e3be44
|
It looks like #34264 will fix this issue. |
There is |
Description
Related to webpack v5 migration: #33818.
Using the latest
@wordpress/scripts
(18.0.0), building with a custom entry point is not possible (npx wp-scripts build ./src/frontent/index.js
).Works normally without the optional path.
Works as expected in 17.1.0.
Step-by-step reproduction instructions
@wordpress/scripts@latest
npx wp-scripts build <some path>
Screenshots, screen recording, code snippet
No response
Environment info
Pre-checks
The text was updated successfully, but these errors were encountered: