Нема описа

123456789101112131415161718192021
  1. const path = require('path');
  2. const merge = require('webpack-merge');
  3. const devConfig = require('../base/webpack.config.dev');
  4. module.exports = merge(devConfig, {
  5. entry: {
  6. mirror: path.resolve(__dirname, '../../example/mirror/index.ts'),
  7. whiteboard: path.resolve(__dirname, '../../example/whiteboard/index.ts')
  8. },
  9. devServer: {
  10. contentBase: path.resolve(__dirname, '../../public')
  11. },
  12. resolve: {
  13. alias: {
  14. react: path.resolve('./node_modules/react'),
  15. 'react-dom': path.resolve('./node_modules/react-dom')
  16. }
  17. }
  18. });