How does webpack package the specified module into js and reference?

at present, a background management system has been developed. If you want to type a function module (there will be many pages and components) into a single js file, and then use the typed js file for development, such as routing to the function page, what should you do?

Mar.05,2021

you can split plug-ins using the new webpack.optimize.CommonsChunkPlugin module. After adding the plug-in, you can make a module distinction at the entrance

Menu