JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 178
  • Score
    100M100P100Q86755F
  • License ISC

Package Exports

  • vue-cli-plugin-mpvue

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-cli-plugin-mpvue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

功能

mpvue plugin for vue-cli 3.0

使用

npm i -g @vue/cli
vue add vue-cli-plugin-mpvue
npm run mpvue:dev

特性

  1. 支持在vue.config.js 中创建 entry 入口,以及alias 别名
  2. 支持命令行中传入入口,例如:
script:{
    "mpvue:dev": "vue-cli-service mpvue './src/entry/mpvue.js'",
    "mpvue:build": "vue-cli-service mpvue './src/entry/mpvue.js' --mode 'production'"
}
  1. mpvue 官方中的demo中存在src/pages.js,此项目允许不存在此文件 则默认src/pages.js文件为pages文件夹下面的文件
[{
    path:'pages/a.vue'
}]