webpack configure multiple file entry, file output multiplexer outlet

the require path = const ( 'path') 

module.exports = { 
  // entry file configuration item 
  entry: { // entry file 
    entry: './src/entry.js', 
    // Here we introduce a file entry 
    entry2,: './src/entry2.js', 
  }, 
  // export file configuration items 
  output: { 
    path // output by the Node syntax 
    path: path.resolve (__ dirname, ' dist'), // packed path filename: '[name] .js' output file name // 
  } 
  // module: Interpretation of the CSS e.g., how to convert the picture, compression 
  Module1: {}, 
  // plug, for the production of templates and functions 
  plugins: [], 
  // configure webpack development services 
  devserver: {} 
}
    
    

  

Guess you like

Origin www.cnblogs.com/gqx-html/p/12029221.html