ezfepack
ezbuy fe pack tool based on webpack
Last updated 2 years ago by ezbuyfe .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install ezfepack 
SYNC missed versions from official npm registry.

EZPack

基于 Webpack 的前端打包工具。

Develop

发布的时候,登陆前端的 npm 账户,执行

$ make publishPatch

Install

$ yarn add ezfepack -D

Usage

启动开发服务器

$ ezpack start

编译项目

$ ezpack build

发布项目

$ ezpack publish

指定配置文件

$ ezpack start --config xxx

Configuration

工具在运行的时候,默认会读取当前目录下的 ezpack.config.js 的文件。也可以在运行的时候手动指定文件位置。下面是神盾局的配置文件例子。各个字段的说明,可以查看参数文档

const path = require("path");

const devPort = "8101";
const srcPath = path.resolve(__dirname, "./src");
const oldPath = path.resolve(__dirname, "./src/oldErp");
const antdPath = path.resolve(__dirname, "./node_modules/antd");

module.exports = {
	name: "shield",
	webpack: {
		rootPath: srcPath,
		entry: {
			index: "./src/entries/index.tsx"
		},
		dllEntry: {
			vendors: [
				// 96k
				"babel-polyfill",
				// 21k
				"react",
				// 121k
				"react-dom",
				// 6.8k
				"redux",
				// 692b
				"redux-thunk",
				// 51k
				"react-router",
				// 4.7k
				"react-router-redux",
				"antd",
				// don't know
				"classnames",
				// 12K
				"whatwg-fetch"
			]
		},
		outputPath: path.resolve(__dirname, "./dist"),
		devPort,
		cdnPath: "/",
		cssModulePath: {
			include: srcPath,
			exclude: [oldPath, antdPath]
		},
		html: true
	},
	publish: {
		onlinePath: path.resolve(__dirname, "xxxx"),
		uatPath: path.resolve(__dirname, "xxx"),
		uatEnv: ["shield1", "shield2"],
		jsDir: "js"
	}
};

Current Tags

  • 1.3.10                                ...           latest (2 years ago)

68 Versions

  • 1.3.10                                ...           2 years ago
  • 1.3.9                                ...           2 years ago
  • 1.3.8                                ...           2 years ago
  • 1.3.7                                ...           2 years ago
  • 1.3.6                                ...           2 years ago
  • 1.3.5                                ...           2 years ago
  • 1.3.4                                ...           2 years ago
  • 1.3.3                                ...           2 years ago
  • 1.3.2                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.26                                ...           2 years ago
  • 1.2.25                                ...           2 years ago
  • 1.2.24                                ...           2 years ago
  • 1.2.23                                ...           2 years ago
  • 1.2.22                                ...           2 years ago
  • 1.2.21                                ...           2 years ago
  • 1.2.20                                ...           2 years ago
  • 1.2.19                                ...           2 years ago
  • 1.2.18                                ...           2 years ago
  • 1.2.17                                ...           2 years ago
  • 1.2.16                                ...           2 years ago
  • 1.2.15                                ...           2 years ago
  • 1.2.14                                ...           2 years ago
  • 1.2.13                                ...           2 years ago
  • 1.2.12                                ...           2 years ago
  • 1.2.11                                ...           2 years ago
  • 1.2.10                                ...           2 years ago
  • 1.2.9                                ...           2 years ago
  • 1.2.8                                ...           2 years ago
  • 1.2.7                                ...           2 years ago
  • 1.2.6                                ...           2 years ago
  • 1.2.5                                ...           2 years ago
  • 1.2.4                                ...           2 years ago
  • 1.2.3                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.41                                ...           2 years ago
  • 1.0.40                                ...           2 years ago
  • 1.0.38                                ...           2 years ago
  • 1.0.37                                ...           2 years ago
  • 1.0.36                                ...           2 years ago
  • 1.0.35                                ...           2 years ago
  • 1.0.34                                ...           2 years ago
  • 1.0.33                                ...           2 years ago
  • 1.0.32                                ...           2 years ago
  • 1.0.31                                ...           2 years ago
  • 1.0.30                                ...           2 years ago
  • 1.0.29                                ...           2 years ago
  • 1.0.28                                ...           2 years ago
  • 1.0.27                                ...           2 years ago
  • 1.0.26                                ...           2 years ago
  • 1.0.25                                ...           2 years ago
  • 1.0.24                                ...           2 years ago
  • 1.0.23                                ...           2 years ago
  • 1.0.22                                ...           2 years ago
  • 1.0.21                                ...           2 years ago
  • 1.0.20                                ...           2 years ago
  • 1.0.19                                ...           2 years ago
  • 1.0.18                                ...           2 years ago
  • 1.0.17                                ...           2 years ago
  • 1.0.16                                ...           2 years ago
  • 1.0.15                                ...           2 years ago
  • 1.0.14                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 0
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |