更新 Jenkinsfile
This commit is contained in:
parent
d371093c42
commit
55a21d594b
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -15,10 +15,11 @@ pipeline {
|
|||||||
stage('安装依赖') {
|
stage('安装依赖') {
|
||||||
steps {
|
steps {
|
||||||
ssh '''
|
ssh '''
|
||||||
# 清理缓存和旧依赖
|
|
||||||
rm -rf node_modules package-lock.json
|
rm -rf node_modules package-lock.json
|
||||||
# 重新安装依赖
|
npm config set registry https://registry.npmmirror.com
|
||||||
npm install --registry=https://registry.npmmirror.com # 使用国内源加速
|
npm install
|
||||||
|
# 确保postcss插件兼容
|
||||||
|
npm install postcss-px-to-viewport-8-plugin@1.1.3 --save-dev
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user