Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

easy-packer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-packer

webresource packer based on gulp, easy to use

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

说明


easy-packer简单的前端构建工具,通过简单配置,实现静态资源一键构建. ###安装

npm install -g easy-packer

###使用

  • 打包命令: 进入你的项目根目录,执行 easy pack [test|uat|prod], 此时,会在项目根目录生成.easy目录,进行构建,构建完的文件在dist目录 ###配置项 easy-packer 支持部分选项配置,例如不同环境的CDN地址,可以在项目的根目录新建一个easy.conf.json,文件结构如下:
{
	src: '/',
	dist: 'dist/',
	ignores: ['node_modules/**', 'package*.json'],
	"cdn": {
		"test": {
			"common": "//m-static-ci.crfchina.com"
		},
		"uat": {
			"common": "//m-static-uat.crfchina.com"
		},
		"prod": {
			"js": "//m-static.crfchina.com",
			"css": "//m-static.crfchina.com",
			"img": "//m-static.crfchina.com",
			"cssimg": "//m-static.crfchina.com"
		}
	}

}
  • src: 源码根目录
  • dist: 编译后代码发布目录
  • ignores: 哪些文件不参与打包
  • cdn: 静态资源服务器URL,支持配置test,uat,prod,三个环境,并且js,css,img,cssimg的域名可以分开,如果不希望独立配置,直接配置common既可

###帮助 在命令行工具内运行 easy -h 来查看帮助文档

Keywords

FAQs

Package last updated on 31 Oct 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc