webpack.config.js 372 B

1234567891011121314151617181920
  1. const path = require('path');
  2. const webpack = require('webpack');
  3. module.exports = {
  4. mode: 'production',
  5. entry: {
  6. server: './index.js',
  7. },
  8. output: {
  9. path: path.join(__dirname, 'build'),
  10. filename: 'index.js'
  11. },
  12. module: {
  13. rules: [
  14. {
  15. exclude: /node_modules/
  16. }
  17. ]
  18. }
  19. };