薇恩 基于 vue-cli 的 webpack 通用封装, 更易简单的开始你的项目
- npm i vayne - g yarn add vayne - D--registry = https: //registry.npm.taobao.org
因为node-sass 安装过慢 所以在当前项目移除依赖 需在使用项目根路径手动安装 见
- # npm 安装
- SASS_BINARY_SITE=http://npm.taobao.org/mirrors/node-sass npm install node-sass -D
- # yarn 指向淘宝镜像
- yarn config set registry https://registry.npm.taobao.org -g
- # yarn node-sass 安装
- yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
- # 指定端口号
- vayne server --prot=2000
- vayne build
- # View the bundle analyzer report after build finishes
- vayne build -R
详见 examples 默认配置见 lib/utils/vayne.config.js 等有时间了在维护文档.
需要编译的文件 同loader 的 include
模板入口 默认是 src/index.tpl
加载插件
来源: https://juejin.im/entry/5a20e7056fb9a045284647ce