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

Update entry-context.mdx #7328

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

cengizilhan
Copy link

multiple js config entry added

the technical document in which you wanted to determine the input and output names of different files was not included. That's why I added this.

multiple js config entry added
Copy link

vercel bot commented Jul 25, 2024

@cengizilhan is attempting to deploy a commit to the Webpack Docs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

linux-foundation-easycla bot commented Jul 25, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

@chenxsan
Copy link
Member

I believe it's already documented in https://webpack.js.org/concepts/entry-points/#multi-page-application

@cengizilhan
Copy link
Author

@chenxsan thats right but
"entry: {
exampleFolder/pageOne:
paths.src + '/index.js'
},"
you cant do it like that so you cant select the folder, only you can define the file.

module.exports = {
//...
entry: {
'/scriptFolder/index.min': '../Static/index.js',
Copy link
Member

Choose a reason for hiding this comment

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

maybe simplify the entry to local relative paths? Makes it easier to understand.

./js/one.jsand ./js/two.js

Copy link
Author

@cengizilhan cengizilhan Aug 1, 2024

Choose a reason for hiding this comment

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

yes, thats better. Should I edit and commit again systematically?

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

Successfully merging this pull request may close these issues.

3 participants