Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Integralist
Copy link
Collaborator

@Integralist Integralist commented Dec 6, 2022

Problem: Not all JS starter-kits require web pack, but the default build script in the CLI will try to execute webpack regardless.
Context: The default build script in the CLI is there to support CLI versions <4.0.0 that see the [scripts.build] field as optional (i.e. we want starter kits to continue to work with older CLI versions).
Solution: Check for prebuild: webpack in the package.json and if there, then we know our default build script should call webpack.

@Integralist Integralist added the enhancement New feature or request label Dec 6, 2022
@Integralist Integralist requested a review from harmony7 December 6, 2022 15:13
Copy link
Member

@harmony7 harmony7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! thanks for this.

@Integralist Integralist merged commit a7e3045 into main Dec 7, 2022
@Integralist Integralist deleted the integralist/fix-webpack-usage branch December 7, 2022 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants