Skip to content

Commit

Permalink
Revert "fix: resolve TypeScript type errors in vite config"
Browse files Browse the repository at this point in the history
This reverts commit 37c2f53.
  • Loading branch information
kaishuige committed Feb 20, 2025
1 parent 894958b commit 6deb4c5
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions packages/components/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,21 @@ export default defineConfig({
'PingFang SC',
'Microsoft YaHei',
'sans-serif',
].join(','),
],
},
},
shortcuts: {
'resume-print': 'font-simsun text-render-geometric',
},
rules: [
[
'font-simsun',
{
'font-family':
'SimSun, 宋体, Microsoft YaHei, 微软雅黑, serif !important',
},
],
[
'text-render-geometric',
'resume-print',
{
'-webkit-font-smoothing': 'initial',
'-moz-osx-font-smoothing': 'initial',
'-webkit-text-size-adjust': '100%',
'text-rendering': 'geometricPrecision',
'@media print': {
'font-family':
'SimSun, 宋体, Microsoft YaHei, 微软雅黑, serif !important',
'-webkit-font-smoothing': 'initial',
'-moz-osx-font-smoothing': 'initial',
'-webkit-text-size-adjust': '100%',
'text-rendering': 'geometricPrecision',
},
},
],
],
Expand Down

0 comments on commit 6deb4c5

Please sign in to comment.