webpack.main.config.ts 496 Bytes
Newer Older
Jeffrey Morgan's avatar
Jeffrey Morgan committed
1
2
3
import type { Configuration } from 'webpack'

import { rules } from './webpack.rules'
Jeffrey Morgan's avatar
Jeffrey Morgan committed
4
import { plugins } from './webpack.plugins'
Jeffrey Morgan's avatar
Jeffrey Morgan committed
5
6
7
8
9
10
11
12
13
14
15

export const mainConfig: Configuration = {
  /**
   * This is the main entry point for your application, it's the first file
   * that runs in the main process.
   */
  entry: './src/index.ts',
  // Put your normal webpack config below here
  module: {
    rules,
  },
Jeffrey Morgan's avatar
Jeffrey Morgan committed
16
  plugins,
Jeffrey Morgan's avatar
Jeffrey Morgan committed
17
18
19
20
  resolve: {
    extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json'],
  },
}