Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mater1996/vite-plugin-mpx
Vite plugin of mpx convert to web
https://github.com/mater1996/vite-plugin-mpx
Last synced: about 1 month ago
JSON representation
Vite plugin of mpx convert to web
- Host: GitHub
- URL: https://github.com/mater1996/vite-plugin-mpx
- Owner: mater1996
- License: mit
- Created: 2021-11-18T10:51:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-11T09:26:10.000Z (over 2 years ago)
- Last Synced: 2023-08-24T07:49:33.451Z (about 1 year ago)
- Language: TypeScript
- Size: 646 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-mpx
[![NPM version](https://img.shields.io/npm/v/vite-plugin-mpx?color=a1b858&label=)](https://www.npmjs.com/package/vite-plugin-mpx)
## Install
```bash
npm install vite-plugin-mpx -D
``````js
// vite.config.js
import mpx from 'vite-plugin-mpx'export default {
plugins: [mpx()],
resolve: {
extensions: ['.mpx', '.mjs', '.js', '.ts', '.jsx', '.tsx', '.json']
},
// If you used `swiper`, please include lodash/throttle
// https://vitejs.dev/config/#optimizedeps-exclude
optimizeDeps: {
include: ['lodash/throttle']
}
}
``````js
import Vue from 'vue'
import App from './app.mpx'new Vue({
el: '#app',
render: function (h) {
return h(App)
}
})
```