webpack.js 422 B

123456789101112131415
  1. const path = require('path');
  2. module.exports = {
  3. entry: {
  4. 'sidebar': path.join(__dirname, 'src', 'sidebar.js'),
  5. 'files-app-settings': path.join(__dirname, 'src', 'files-app-settings.js'),
  6. 'personal-settings': path.join(__dirname, 'src', 'main-personal-settings.js'),
  7. },
  8. output: {
  9. path: path.resolve(__dirname, './js/dist/'),
  10. publicPath: '/js/',
  11. filename: '[name].js',
  12. chunkFilename: 'files.[id].js'
  13. }
  14. }