Explorar o código

fix: webpackChain config type fix

zhaofinger %!s(int64=6) %!d(string=hai) anos
pai
achega
a98f9c9c31
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      config/plugin.config.ts

+ 3 - 1
config/plugin.config.ts

@@ -1,5 +1,7 @@
 import path from 'path';
 
+import * as IWebpackChainConfig from 'webpack-chain';
+
 function getModulePackageName(module: { context: string }) {
   if (!module.context) return null;
 
@@ -19,7 +21,7 @@ function getModulePackageName(module: { context: string }) {
   return packageName;
 }
 
-export default (config: any) => {
+export default (config: IWebpackChainConfig) => {
   // optimize chunks
   config.optimization
     // share the same chunks across different modules