1
0

webpack.js 390 B

123456789101112131415
  1. const path = require('path');
  2. module.exports = {
  3. entry: {
  4. main: path.join(__dirname, 'src', 'main.js'),
  5. sidebar: path.join(__dirname, 'src', 'sidebar.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. }