Vue project webpack packaging record

# Project packaging record
 
- webpack single entry, the entry attribute is passed in the entry file path, an array can be passed in, and multiple entry entries will be created by passing in an array
 
### Object Syntax
 
Usage: `entry:{}`
 
//weboack.config.js
 
```
const config={
    entry:{
        <!-- Multiple entry files can be configured-->
        app:'./aa/bb/x.js',
        <!-- Package dependent libraries and project code separately-->
        vendors:'./aa/bb/vendors.js'
    }
    ,
    output:{
        <!-- The packaged output file, if a plugin is used, the file name needs to use a variable -->
        filename:'',
        <!-- path to output file-->
        path:''
    }
}
```

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325027291&siteId=291194637