We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ff9dce commit e1d5db0Copy full SHA for e1d5db0
3 files changed
packages/template/webpack-typescript/tmpl/webpack.main.config.ts
@@ -1,5 +1,7 @@
1
import type { Configuration } from 'webpack';
2
3
+import { rules } from './webpack.rules';
4
+
5
export const mainConfig: Configuration = {
6
/**
7
* This is the main entry point for your application, it's the first file
@@ -8,7 +10,7 @@ export const mainConfig: Configuration = {
8
10
entry: './src/index.ts',
9
11
// Put your normal webpack config below here
12
module: {
- rules: require('./webpack.rules'),
13
+ rules,
14
},
15
resolve: {
16
extensions: ['.js', '.ts', '.jsx', '.tsx', '.css', '.json'],
packages/template/webpack-typescript/tmpl/webpack.plugins.js
packages/template/webpack-typescript/tmpl/webpack.plugins.ts
@@ -3,4 +3,8 @@ import type IForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ForkTsCheckerWebpackPlugin: typeof IForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
-export const plugins = [new ForkTsCheckerWebpackPlugin()];
+export const plugins = [
+ new ForkTsCheckerWebpackPlugin({
+ logger: 'webpack-infrastructure',
+ }),
+];
0 commit comments