作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有我的管道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/
我是一名优秀的程序员,十分优秀!