@best-shot/preset-vue
@best-shot/preset-vue 
A best-shot preset for Vue project.
This preset offer the following features:
- Vue (3.x/2.x) framework support
- Vue Single-File Component (SFC) Spec support
- Vue 3 migration build support
Installation
npm install @best-shot/preset-vue --save-dev
Usage
// example: .best-shot/config.mjs
export const config = {
presets: ['vue'],
vue: {
// shadowMode
// transformAssetUrls
// compilerOptions
}
};
Add CSS/SCSS/LESS support
npm install @best-shot/preset-style --save-dev
// example: .best-shot/config.mjs
export const config = {
presets: ['style', 'vue']
};
Vue 3 migration build support
npm install @vue/compat --save
@vue/compat will become the alias of vue automatically.
// example: .best-shot/config.mjs
export const config = {
presets: ['vue'],
vue: {
compilerOptions: {
compatConfig: {
MODE: 2
}
}
}
};
Tips
Whitespace options override
options.compilerOptions.whitespace of vue-loader is set to condense by default.
See: vue-template-compiler#options
Related
Related Packages
django-gettext-vue-loader
Loader for vue.js templates that allows to use django gettext template syntax
5,498
5
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.17.1 | ~3.5.42 | MIT | |
| 0.17.0 | ~3.5.38 | MIT | |
| 0.16.4 | ^3.5.29 | MIT | |
| 0.16.3 | ~3.5.28 | MIT | |
| 0.16.2 | ~3.5.28 | MIT | |
| 0.16.1 | ~3.5.18 | MIT | |
| 0.16.0 | ~3.5.17 | MIT | |
| 0.15.3 | ~3.5.17 | MIT | |
| 0.15.2 | ~3.5.16 | MIT | |
| 0.15.1 | ~3.5.13 | MIT | |
| 0.15.0 | ~3.5.13 | MIT | |
| 0.14.0 | ~3.5.13 | MIT | |
| 0.13.7 | ~3.5.8 | MIT | |
| 0.13.6 | ~3.5.5 | MIT | |
| 0.13.5 | ~3.5.5 | MIT | |
| 0.13.4 | ~3.5.4 | MIT | |
| 0.13.3 | ~3.5.4 | MIT | |
| 0.13.2 | ^3.4.27 | MIT | |
| 0.13.1 | ^3.4.27 | MIT | |
| 0.13.0 | ^3.4.27 | MIT | |
| 0.12.15 | ^3.4.27 | MIT | |
| 0.12.14 | ^3.4.27 | MIT | |
| 0.12.13 | ^3.4.27 | MIT | |
| 0.12.12 | ^3.4.27 | MIT | |
| 0.12.10 | ^3.4.27 | MIT | |
| 0.12.9 | ^3.4.27 | MIT | |
| 0.12.8 | ^3.4.25 | MIT | |
| 0.12.7 | ^3.4.23 | MIT | |
| 0.12.6 | ^3.4.23 | MIT | |
| 0.12.5 | ^3.4.23 | MIT |
Showing the latest 30 of 84. See every release on npm
Pre-releases (1)
| Version | Released | License |
|---|---|---|
| 0.0.0-aphla | MIT |