Quasar Framework Vue CLI Plugin

5.1.2 · maintenance · verified Sun Apr 19

The `vue-cli-plugin-quasar` package facilitates the integration of Quasar Framework v2 with Vue CLI v5 projects. It provides the necessary webpack configurations, build tools, and scaffolding to jumpstart the development of Quasar-powered Vue 3 applications. While this plugin enables developers to utilize Quasar within an existing Vue CLI ecosystem, it's crucial to acknowledge that Vue CLI itself is currently in maintenance mode. For a comprehensive and premium Quasar development experience, which includes robust support for building Mobile and Electron applications, along with seamless upgrades, the Quasar Framework team strongly recommends using the dedicated Quasar CLI. The current stable version of this plugin is 5.1.2. Its primary role is to configure a Vue CLI project to correctly bundle and optimize Quasar components, rather than acting as a runtime library itself.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart guides you through setting up a new Vue CLI v5 project and integrating the Quasar Framework using this plugin, demonstrating the initial project creation, plugin installation, invocation, and how to start the development server.

# Ensure Vue CLI v5 is installed
vue --version

# If Vue CLI v5 is not installed, install or upgrade globally:
# npm install -g @vue/cli
# # OR
# yarn global add @vue/cli

# Create a new Vue CLI project (choose Vue 3 and default options for simplicity)
vue create my-quasar-app

# Navigate into your newly created project folder
cd my-quasar-app

# (Recommended) Commit existing changes before adding the plugin, to easily revert if needed
# git init
# git add .
# git commit -m "Initial Vue CLI project"

# Add the Quasar CLI plugin as a development dependency
yarn add --dev vue-cli-plugin-quasar
# # OR
# npm install --save-dev vue-cli-plugin-quasar

# Invoke the plugin to integrate Quasar Framework into your project
vue invoke quasar
# Follow the prompts; it's generally recommended to allow the plugin to replace example files.

# Now you can run your Quasar-enabled Vue application
yarn serve
# # OR
# npm run serve

view raw JSON →