Skip to content

Commit e024902

Browse files
committed
chore(deps): Update dependency kkt to v5.6.1 #16
1 parent 950081e commit e024902

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.kktrc.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import path from 'path';
2+
import webpack from 'webpack';
3+
import { OptionConf, Webpack } from 'kkt';
24

35
export const moduleScopePluginOpts = [
46
path.resolve(process.cwd(), 'README.md'),
@@ -33,9 +35,9 @@ export const loaderOneOf = [
3335
[require.resolve('@kkt/loader-less'), {}],
3436
]
3537

36-
export default (conf, opts, webpack) => {
38+
export default (conf: webpack.Configuration, opts: OptionConf, webpack: Webpack) => {
3739
const pkg = require(path.resolve(process.cwd(), 'package.json'));
38-
conf.module.rules.map((item) => {
40+
conf.module!.rules.map((item) => {
3941
if (item.oneOf) {
4042
item.oneOf.unshift({
4143
test: /\.md$/,
@@ -45,7 +47,7 @@ export default (conf, opts, webpack) => {
4547
return item;
4648
});
4749
// 获取版本
48-
conf.plugins.push(
50+
conf.plugins!.push(
4951
new webpack.DefinePlugin({
5052
VERSION: JSON.stringify(pkg.version),
5153
})

package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,7 @@
7979
"@babel/runtime": "^7.8.4"
8080
},
8181
"eslintConfig": {
82-
"extends": "react-app",
83-
"no-unused-vars": "off",
84-
"@typescript-eslint/no-unused-vars": [
85-
"error",
86-
{
87-
"vars": "all",
88-
"args": "after-used",
89-
"ignoreRestSiblings": false
90-
}
91-
]
82+
"extends": "react-app"
9283
},
9384
"browserslist": {
9485
"production": [

0 commit comments

Comments
 (0)