You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

webpack.renderer.config.ts 396B

12345678910111213141516171819
  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' }],
  7. });
  8. export const rendererConfig: Configuration = {
  9. module: {
  10. rules,
  11. },
  12. plugins,
  13. resolve: {
  14. extensions: ['.js', '.ts', '.jsx', '.tsx', '.css'],
  15. },
  16. };