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