Get started quickly by installing and setting up this module with the following instructions.
Add @nuxtjs/ionic
to your project's dev dependencies:
npx nuxi@latest module add ionic
Next, add the module to your Nuxt configuration in nuxt.config.ts
.
export default defineNuxtConfig({
modules: ['@nuxtjs/ionic'],
ssr: false,
})
ssr: false
in your nuxt config. Find out more in deploying to both web and device.Finally, either remove your app.vue
file or replace it with a custom one.
Now you'll be able to start your Nuxt app in development mode as usual:
yarn dev -o
@nuxtjs/ionic
enabled, a ionic.config.json
file will be created if it doesn't already exist.