chore(deps): update dependency kkt to v6.9.0

pull/287/head
jaywcjlove 4 years ago
parent 0d4d675353
commit 9c04d6a574

@ -18,6 +18,24 @@ export default (conf, env, options) => {
VERSION: JSON.stringify(pkg.version),
})
);
conf.optimization = {
...conf.optimization,
splitChunks: {
cacheGroups: {
reactvendor: {
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
name: 'react-vendor',
chunks: 'all',
},
prismjs: {
test: /[\\/]node_modules[\\/](prismjs)[\\/]/,
name: 'prismjs-vendor',
chunks: 'async',
},
},
},
};
if (env === 'production') {
conf.output = { ...conf.output, publicPath: './' };
}

@ -6,6 +6,7 @@
"types": "index.d.ts",
"module": "dist/hotkeys.esm.js",
"scripts": {
"prepare": "npm run build:lib",
"lint": "eslint --ext .js src website",
"build:lib": "node scripts/build.js",
"build": "npm run build:lib && npm run doc && npm run lint",
@ -49,9 +50,9 @@
},
"dependencies": {},
"devDependencies": {
"@kkt/less-modules": "6.7.2",
"@kkt/raw-modules": "6.7.2",
"@kkt/scope-plugin-options": "6.7.2",
"@kkt/less-modules": "6.9.0",
"@kkt/raw-modules": "6.9.0",
"@kkt/scope-plugin-options": "6.9.0",
"@uiw/react-github-corners": "1.2.0",
"@uiw/react-mac-keyboard": "1.0.5",
"@uiw/react-markdown-preview": "1.0.9",
@ -67,7 +68,7 @@
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-react": "7.22.0",
"husky": "4.2.3",
"kkt": "6.7.2",
"kkt": "6.9.0",
"jest": "26.6.0",
"puppeteer": "2.1.1",
"react": "16.13.1",

Loading…
Cancel
Save