perf- 添加全局样式

This commit is contained in:
h_mo 2022-06-03 12:53:33 +08:00
parent d8a71e8fba
commit b6c2773e5c
3 changed files with 22 additions and 16 deletions

View File

@ -11,19 +11,4 @@
console.log('App Hide'); console.log('App Hide');
}); });
</script> </script>
<style lang="scss"> <style lang="scss"></style>
:not(not),
::before,
::after {
box-sizing: border-box;
}
/* 隐藏scroll-view的滚动条 */
::-webkit-scrollbar {
display: none;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
background: transparent;
}
</style>

View File

@ -0,0 +1,14 @@
:not(not),
::before,
::after {
box-sizing: border-box;
}
/* 隐藏scroll-view的滚动条 */
::-webkit-scrollbar {
display: none;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
background: transparent;
}

View File

@ -23,6 +23,13 @@ export default defineConfig({
cache: false, cache: false,
}), }),
], ],
css: {
preprocessorOptions: {
scss: {
additionalData: '@import "@/assets/style/main.scss";',
},
},
},
resolve: { resolve: {
alias: { alias: {
'@': resolve('./src'), '@': resolve('./src'),