1.0.0 • Published 2 years ago

weforward-builder-vue2 v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

weforward项目构建依赖插件

需要配合weforward项目的配置文件使用

//vue.config.js
const isProduction = process.env.NODE_ENV === 'production';
module.exports = {
	publicPath: process.env.VUE_APP_WF_PUBLICPATH,
	devServer: {
		//前端页面的访问端口
		port: 8080,
	},
	configureWebpack: config => {
		if (isProduction) {
			const builder = require('weforward-builder');
			config.plugins.push(new builder());
		}
	},
	filenameHashing: true,
	productionSourceMap: false
}

环境变量

#NODE 环境
NODE_ENV=production

# APP公开入口
VUE_APP_WF_PUBLICPATH=/#{name}/#{tag}/

#接口域名,多个时使用英文逗号隔开
VUE_APP_WF_HOST=//wf.weforward.xyz

#是否增长版本
WF_BUILD_IS_GROW_VERSION=true

#是否打包
WF_BUILD_IS_PACKAGE=true

#是否发布
WF_BUILD_IS_DIST=true

#编译并提交项目到git仓库中,此处为字符串,不需要提交请不要设置
WF_BUILD_IS_COMMIT=true

#编译并创建当前版本git仓库标签,不需要提交请不要设置
WF_BUILD_IS_TAG=true

#项目编译后提交的路径
WF_BUILD_DISTHUB_URL=http://xxxx/dist/html/

#编译并提交项目需要鉴权,内容格式为"用户名:密码"
#WF_BUILD_DIST_AUTHORIZATION=xxx:xxx

#多项目结构时使用,指定项目的package.json,不指定默认使用package.js
#WF_BUILD_PACKAGE_JS=./src/mypackage.json
1.0.0

2 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago