Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to have two entry files in webpack

module.exports = {
  entry: ['./src/file_1.js', './src/file_2.js'],
  output: {
    filename: 'bundle.js',
  },
};
Source by webpack.js.org #
 
PREVIOUS NEXT
Tagged: #entry #files #webpack
ADD COMMENT
Topic
Name
9+5 =