3.4.0 • Published 6 years ago

easywebpack-weex-boilerplate v3.4.0

Weekly downloads
20
License
-
Repository
github
Last release
6 years ago

easywebpack-weex-boilerplate

Weex Native and Web building boilerplate for Webpack

使用

安装cli

npm install easywebpack-cli -g

安装依赖

npm install
npm start

启动应用

npm start

项目构建

// 编译文件到磁盘打包使用(发布正式环境)
npm run build 或者 easy build prod

不使用 cli, 直接使用 easywebpack-weex

//build/index.js
const easywebpack = require('easywebpack-weex');
const weexConfig = require('./weex/native');
const webConfig = require('./weex/web');
const NODE_SERVER = process.env.NODE_SERVER;

const webpackConfig = [weexNativeConfig, weexWebConfig];

if (process.env.NODE_ENV === 'development') {
  easywebpack.start(webpackConfig);
} else {
  easywebpack.build(webpackConfig);
}

start webpack debug server: http://127.0.0.1:8888/debug

UI-VIEW

3.4.0

6 years ago

3.3.0

6 years ago

3.0.1

7 years ago

3.0.0

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago