webpack.renderer.config.ts 421 B

1234567891011121314151617181920
  1. import type { Configuration } from 'webpack'
  2. import { rules } from './webpack.rules'
  3. import { plugins } from './webpack.plugins'
  4. rules.push({
  5. test: /\.css$/,
  6. use: [{ loader: 'style-loader' }, { loader: 'css-loader' }, { loader: 'postcss-loader' }],
  7. })
  8. export const rendererConfig: Configuration = {
  9. module: {
  10. rules,
  11. },
  12. plugins,
  13. resolve: {
  14. extensions: ['.js', '.ts', '.jsx', '.tsx', '.css'],
  15. },
  16. }