- doc: environments setup
- vscode
- ionic extension
- node version >= 18
- install cli
$ npm install -g @ionic/cli
-
android
- install needed sdk (by sdk manager)
- install virtual device (by device manager?)
- please open the ionic extension menu
- enable live reload in setting
- add ios or android project
- build the project
- sync the project
- run the ios or android
TODO
- install
因為是使用 vite
因此參考 doc: Install Tailwind CSS with Vite (using vue)
- update postcss.config
加上
{
'tailwindcss/nesting': {},
}
- 設定 dark mode 模式
在 tailwind.config.js 加上
{
darkMode: 'class',
}
- 調整 ionic 預設 variable.css
移除 @media (prefers-color-scheme: dark) {
有關 dark 的樣式,全部加上 .dark
的 prefix
https://eslint.vuejs.org/rules/component-name-in-template-casing.html
{
"vue/component-name-in-template-casing": [
"error",
"PascalCase",
{
"registeredComponentsOnly": true,
"ignores": []
}
]
}
check if unplugin-vue-router can work
replace current vite-plugin-pages
with unplugin-vue-router