Commit 25e4c73b authored by 郑秀明's avatar 郑秀明

修改本地文件

parent 0470faea
# dependencies
/node_modules
/npm-debug.log*
/yarn-error.log
/yarn.lock
/package-lock.json
/unpackage
\ No newline at end of file
#!/usr/bin/env bash
sshpass -p dbc_root123 scp -P 22 -r unpackage/dist/build/h5/* root@39.96.85.45:/docker/shop_mobile_uni/dist
const gulp = require('gulp');
const publish = require('gulp-oss-publish');
// oss配置文件
const config = {
prefix: `dbc-shop/uni/`,
genShortId: false,
oss: {
region: 'oss-cn-beijing',
accessKeyId: 'LTAIDfwPBC9AnsRt',
secretAccessKey: 'Z6FtUptrAk0Sl6H8vrVBGZLbBzXEpO',
endpoint: 'http://oss-cn-beijing.aliyuncs.com',
bucket: 'dbc-static'
},
headers: {
CacheControl: 'public',
ContentEncoding: '',
ServerSideEncryption: 'AES256'
}
}
// 上传本地编译后的资源到oss
gulp.task('default', () =>
gulp
.src([`unpackage/dist/build/h5/**/*`, '!unpackage/dist/build/h5/index.html'], {
base: 'unpackage/dist/build/h5',
buffer: true
})
.pipe(publish(config))
);
......@@ -75,12 +75,18 @@
"h5" : {
"title" : "谛宝多多商城",
"router" : {
"mode" : "history"
"mode" : "history",
"base" : "/uni"
},
"publicPath" : "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/",
"optimization" : {
"treeShaking" : {
"enable" : true
}
}
},
"devServer" : {
"https" : true
},
"domain" : "https://test.pet-dbc.cn"
}
}
{
"name": "shop_mobile_uni",
"version": "1.0.0",
"description": "商城多端统一系统",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "http://39.96.27.29/zhengxiuming/shop_mobile_uni.git"
},
"author": "zxm",
"license": "ISC",
"devDependencies": {
"gulp": "^4.0.2",
"gulp-oss-publish": "^1.0.4"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment