https://github.com/tidev/webpack-plugin-vue
Titanium Vue Plugin for Appcd Webpack
https://github.com/tidev/webpack-plugin-vue
npm-package
Last synced: 7 months ago
JSON representation
Titanium Vue Plugin for Appcd Webpack
- Host: GitHub
- URL: https://github.com/tidev/webpack-plugin-vue
- Owner: tidev
- License: apache-2.0
- Created: 2020-05-15T13:22:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-06T21:44:12.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T11:49:25.029Z (over 1 year ago)
- Topics: npm-package
- Language: JavaScript
- Homepage:
- Size: 474 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# @titanium-sdk/webpack-plugin-vue
> Titanium Vue plugin for Appcd Webpack
## Installation
To install this plugin in an existing project, run the following command in your project root:
```sh
npm i @titanium-sdk/webpack-plugin-vue titanium-vue-template-compiler
```
## Webpack configuration
This plugin will add/modify the following Webpack options:
### Resolve
- Aliases
- `@`: `./src`
- Extensions: `vue`
### Rules
- `rule('vue')`
- `rule('vue').use('vue-loader')`
### Plugins
- `plugin('vue-define')`: add platform constant so `titanium-vue-template-compiler` knows for what platform to compile
- `plugin('vue-loader')`: add the `VueLoaderPlugin`
- `plugin('titanium-loader')` add the `TitaniumLoaderPlugin` to track Titanium UI API usage in Vue templates.