Ask Your Question
0

Can a package or library be excluded from SWC's minification or ignored?

asked 2023-06-30 06:20:40 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-30 06:48:02 +0000

scrum gravatar image

Yes, it is possible to exclude certain packages or libraries from SWC's minification using configuration options. For example, in the SWC configuration file, you can use the ignore option to specify which packages or files should be excluded from minification:

{
  "ignore": [
    "**/react/**",
    "**/jquery/**"
  ]
}

This configuration will exclude all files within the react and jquery packages from being included in the minified output.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-30 06:20:40 +0000

Seen: 8 times

Last updated: Jun 30 '23