No Description

webpack.config.dev.js 495B

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