🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

easywebpack-weex-boilerplate

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easywebpack-weex-boilerplate

weex native and web build boilerplate

latest
Source
npmnpm
Version
3.4.0
Version published
Weekly downloads
17
21.43%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 08 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts