webpack.main.config.ts 496 B

123456789101112131415161718192021
  1. import type { Configuration } from 'webpack'
  2. import { rules } from './webpack.rules'
  3. import { plugins } from './webpack.plugins'
  4. export const mainConfig: Configuration = {
  5. /**
  6. * This is the main entry point for your application, it's the first file
  7. * that runs in the main process.
  8. */
  9. entry: './src/index.ts',
  10. // Put your normal webpack config below here
  11. module: {
  12. rules,
  13. },
  14. plugins,
  15. resolve: {
  16. extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json'],
  17. },
  18. }