Adds @vue/vue support to @roots/bud projects
Install @roots/bud-vue to your project.
Yarn:
yarn add @roots/bud-vue --dev
npm:
npm install @roots/bud-vue --save-dev
Once installed, vue should be ready to use in your project. The extension is pre-configured to support Vue 3 single file components (runtime only).
You can disable the runtimeOnly
default by adding the following to your config:
export default async (bud) => {
bud.vue.setRuntimeOnly(false);
};
Developers using JS may wish to consider installing @roots/bud-babel to handle code transforms that are not specific to vue.
For typescript language support, install @roots/bud-typescript as a peer dependency.
For scss support, install @roots/bud-sass as a peer dependency.
If you are trying to configure @roots/bud-vue for use with Vue 2 you will need to install a version of vue tagged legacy
and a compatible version of the vue-loader and vue-template-compiler packages.
If a custom version of vue is included in the project package.json the extension will automatically detect it and configure itself accordingly.
Contributions are welcome from everyone.
We have contribution guidelines to help you get started.
@roots/bud-vue is licensed under MIT.
Keep track of development and community news.
- Join us on Roots Slack by becoming a GitHub sponsor
- Participate on the Roots Discourse
- Follow @rootswp on Twitter
- Read and subscribe to the Roots Blog
- Subscribe to the Roots Newsletter
Bud is an open source project and completely free to use.
However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider sponsoring Roots.