Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Externals config for specific entry #339

Closed
Amanda111 opened this issue Jul 6, 2022 · 1 comment
Closed

Externals config for specific entry #339

Amanda111 opened this issue Jul 6, 2022 · 1 comment

Comments

@Amanda111
Copy link

In webpack, externals can be added to entry config. https://github.com/webpack/webpack/issues/731

[
  {
    entry: { app: ['./src/app/index'] }
  },
  {
    entry: { app: ['./src/app/index'] },
    externals: { jquery: "var jQuery" }
  }
]

How can I config entry using webpack-chain ? Is the following possible in webpack-chain?

    config
      .entry('web-bundle')
      .add('./src/view.js')
      .externals([
        {
           jquery: "var jQuery"
        }
      ]
      .end();
@edmorley edmorley closed this as completed Feb 3, 2024
@edmorley
Copy link
Member

edmorley commented Feb 4, 2024

Closing since unfortunately this project is no longer maintained:
#358

@edmorley edmorley closed this as not planned Won't fix, can't repro, duplicate, stale Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants