gpt4 book ai didi

git - Bitbucket 管道 webpack 构建和 ftp 在服务器上部署 NO JS OUTPUT

转载 作者:行者123 更新时间:2023-12-05 07:38:18 26 4
gpt4 key购买 nike

我有我的管道build设置:

  branches:
production:
- step:
name: Build and test JS.
image: node:8.9.3
script:
- npm install
- npm test
- npm run-script build
- step:
name: Build and test PHP.
image: php:7-fpm
script:
- echo "Here will be the Composer build and PHPUnit tests."
- step:
name: Deploy to FTP.
image: samueldebruyn/debian-git
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD ftp://$FTP_HOST

...问题是它构建没有错误,但是我的服务器上没有标准的 webpack 输出 js 文件(应该出现在运行 webpack 的 npm build 之后)。我怎样才能将该输出 js 文件“放入”该版本的服务器?请帮忙。

最佳答案

我想您在过去 6 个月以来已经找到了解决方案...如果有人遇到同样的问题:这是我找到的。

当模式设置为“生产”时,Bitbucket Pipelines 不会保存 Webpack (^4.12.0) 生成的构建。当构建处于开发模式(或“无”模式)时,一切都运行良好。

export default {

/*=========================================
= JAVASCRIPT FILES =
=========================================*/

// https://webpack.js.org/concepts/targets/

target: 'web',

// production, development, none

mode : 'none',

关于git - Bitbucket 管道 webpack 构建和 ftp 在服务器上部署 NO JS OUTPUT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48014193/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com