How does DllPlugin ignore Packaging specified folders

1. Frequent build is required in the project, plug-ins are often built and slow to use dllplugin to separate third-party libraries that do not need to be re-packaged

const path = require("path");
const webpack = require("webpack");
module.exports = {
  entry: {
    vendor: [
    "vue/dist/vue.esm.js",
    "vue-router",
    "babel-polyfill"
    ]
  },
  output: {
    path: path.join(__dirname, "../static/js"), 
    filename: "[name].dll.js",
    library: "[name]_library" 
  },
  plugins: [
    new webpack.DllPlugin({
      path: path.join(__dirname, ".", "[name]-manifest.json"),
      name: "[name]_library"
    }),  
    new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false,
        drop_console:true,
        drop_debugger:true
      },
      output:{
        comments: false,
      },
      sourceMap: true
    })
  ]
};

as shown in the figure, there are several third-party libraries under node_modules

question 1: do so many third-party libraries under node_modules need to be listed here one by one?
question 2: what if I want to ignore the files in the specified folder?

Mar.23,2022
The function of

dll is to precompile and package packages or static files that do not need frequent changes in advance into a js file and mapping json; benefits: 1, fast packaging speed; 2, convenient caching; You can refer to this project https://github.com/NewPrototy.


question 1: do so many third-party libraries under node_modules need to be listed here one by one?
only the dependent packages of dependencies. For example, if you develop with vue, you will have to use vue buckets such as vue,vue-router,axios. Then use DllPlugin dynamic links and cache them.

question 2: what if I want to ignore the files in the specified folder?
the js file you wrote yourself is not suitable for creating dynamic link libraries.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5d0a6-4ce02.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5d0a6-4ce02.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?