]> git.ipfire.org Git - thirdparty/vuejs/create-vue.git/commit
refactor: move global styles to `main.css`; use only scoped styles in `App.vue`
authorHaoqun Jiang <haoqunjiang@gmail.com>
Tue, 12 Jul 2022 10:16:18 +0000 (18:16 +0800)
committerHaoqun Jiang <haoqunjiang@gmail.com>
Wed, 13 Jul 2022 04:23:58 +0000 (12:23 +0800)
commitbee45a1f6c8163ec0da606ef67c298f51a0a144d
treec3aae666f57ddc3b6b90aa86b8c33f6ce8f70595
parent62f331a5fc7f5ef7471b4d28c1a933abc06b1b72
refactor: move global styles to `main.css`; use only scoped styles in `App.vue`

- `base.css` contains CSS resets and variables
- `main.css` is the global styles of the app, to be imported by `main.js`
- `App.vue` only contains the styles for the root `App` component
template/base/src/assets/main.css [new file with mode: 0644]
template/code/default/src/App.vue
template/code/router/src/App.vue
template/code/typescript-default/src/App.vue
template/code/typescript-router/src/App.vue
template/entry/default/src/main.js
template/entry/pinia/src/main.js
template/entry/router-and-pinia/src/main.js
template/entry/router/src/main.js