How to introduce public js into the configuration of vue-cli3

webpackentry:["...","..."]
vue-cli3
vue-cli3 
pages[chunk].entry
Mar.25,2022

configure the vue.config.js file

configureWebpack: config => {
 
    // common 
    config.entry = Object.assign({}, {
      common: ['fastclick', 'units/checkwebp', ...]
    }, config.entry)
}

enter: vue inspect on the command line to see if the configuration is successful. The usage of the command is searched by yourself, and there is no explanation here

Menu