Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

WebPack Multiple files

// place in wepack.config.js
// this creates app.js & vendor.js

module.exports = {
  entry: {
    app: 'src/app.js',
    vendor: 'src/vendor.js'
  },
  output: {
    path: __dirname + '/public',
    filename: '[name].js'
  }
}
Source by devhints.io #
 
PREVIOUS NEXT
Tagged: #WebPack #Multiple #files
ADD COMMENT
Topic
Name
8+8 =