@tuhu/webpack-miniapp-vue
## 说明
Last updated a year ago by landn172 .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @tuhu/webpack-miniapp-vue 
SYNC missed versions from official npm registry.

webpack-miniapp-vue

说明

基于 mpvue 官方quickstart封装编译编译部分代码为了开箱即用、统一编译(方便日后升级),不用每个项目都引入build/

  • v1.3.0 将mpvue-loader升级到 ^1.1.2 注意mpvue的官方文档变更, 如果使用mpvue-entry需要升级到^1.5.0

支持 h5 编译

v1.2.0 起支持 h5 编译支持

开启方式:设置环境变量 PLATFORM_ENV=h5

example: package.json

{
  "scripts": {
    "watch:h5": "cross-env PLATFORM_ENV=h5 wmv dev"
  }
}

html模板默认会读取当前目录的index.html

配置

在根目录下添加 wmv.config.js

// 入口文件根据不同项目配置不同入口
// TODO: entry默认根据官方配置文件目录结构
const entry = {
  app: "..."
  // ...
};

module.exports = {
  // webpack 配置会merge覆盖默认配置
  webpack: {
    entry
  }
};

install

npm install --save-dev @tuhu/webpack-miniapp-vue

示例

start.js

const { dev, build } = require("@tuhu/webpack-miniapp-vue");
dev(); // run dev

cli

wmv dev #run dev
wmv build #build production

Current Tags

  • 1.3.2                                ...           latest (a year ago)

14 Versions

  • 1.3.2                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.4-beta.1                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 44
Dependencies (71)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |