Skip to content

Commit

Permalink
website: support dark theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 9, 2022
1 parent bced404 commit da7babf
Show file tree
Hide file tree
Showing 9 changed files with 1,274 additions and 1,541 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
32 changes: 16 additions & 16 deletions .kktrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ export default (conf, env, options) => {
})
);

conf.optimization = {
...conf.optimization,
splitChunks: {
cacheGroups: {
reactvendor: {
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
name: 'react-vendor',
chunks: 'all',
},
refractor: {
test: /[\\/]node_modules[\\/](refractor)[\\/]/,
name: 'refractor-vendor',
chunks: 'all',
if (env === 'production') {
conf.optimization = {
...conf.optimization,
splitChunks: {
cacheGroups: {
reactvendor: {
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
name: 'react-vendor',
chunks: 'all',
},
refractor: {
test: /[\\/]node_modules[\\/](refractor)[\\/]/,
name: 'refractor-vendor',
chunks: 'all',
},
},
},
},
};
if (env === 'production') {
};
conf.output = { ...conf.output, publicPath: './' };
}
return conf;
Expand Down
Loading

0 comments on commit da7babf

Please sign in to comment.