Skip to content

Commit

Permalink
fix(cli/gen): localize static resources
Browse files Browse the repository at this point in the history
affects: @varlet/cli
  • Loading branch information
haoziqaq committed Sep 13, 2021
1 parent d990a26 commit 80f9097
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/varlet-cli/generators/sfc/public/highlight.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/varlet-cli/generators/sfc/varlet.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
'color-mobile-cell-hover-background': '#00968821',
},
highlight: {
style: '//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.3.2/styles/night-owl.min.css',
style: './highlight.css',
},
pc: {
redirect: '/home',
Expand Down
1 change: 1 addition & 0 deletions packages/varlet-cli/generators/tsx/public/highlight.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/varlet-cli/generators/tsx/varlet.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
'color-mobile-cell-hover-background': '#00968821',
},
highlight: {
style: '//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.3.2/styles/night-owl.min.css',
style: './highlight.css',
},
pc: {
redirect: '/home',
Expand Down

0 comments on commit 80f9097

Please sign in to comment.