easywebpack-weex
基于 easywebpack 的 Weex Native 和 Weex Web 打包构建解决方案.
安装
$ npm i easywebpack-weex --save-dev
使用
const weex = ;// 获取 webpack weex 配置const webpackConfig = weex; // 获取 webpack web 配置const webpackConfig = weex; // 获取 webpack weex 和 web 配置const webpackConfig = weex;
开发构建
- 使用 webpack-cli 开发构建服务
webpack --config webpack.config.js
- 使用 easywebpack 内置开发构建服务
const weex = ;if processenvNODE_ENV === 'development' // development mode: webpack building and start webpack hot server weex; else // build file to disk weex;
工程骨架
easywebpack-weex-boilerplate Weex构建项目骨架