live sass 编译后,sftp 不上传编译后的文件

问题描述 投票:0回答:1

您阅读常见问题解答吗? 是的。

描述错误:

Live sass 编译器https://github.com/ritwickdey/vscode-live-sass-compiler 制作 style.css.min 文件,但此文件不会自动上传

sftp.json中(访问是隐藏的,只有一个文件保存后不上传):

{
  "name": "name",
  "host": "host",
  "protocol": "ftp",
  "port": 21,
  "username": "username",
  "password": "password",
  "remotePath": "/remotePath/",
  "uploadOnSave": true,
  "watcher": {
    "files": "/style.min.css",
    "autoUpload": true
  }
}

我需要做什么来制作自动上传生成文件style.min.css?

sass sftp
1个回答
0
投票
{
        "name": "Project name",
        "host": "host server",
        "protocol": "ftp",
        "port": 21,
        "username": "login ftp",
        "password": "password_ftp",
        "remotePath": "/",
        "ignore": [".vscode", "wp-includes", "cache", "pluginz", "smush-webp", "wp-rocket-config","wp-admin", "updraft", "uploads-webpc", "wflogs", "wp-cloudflare-super-page-cache","backups", "plugins", "webp-express", "languages" ,".git", ".DS_Store", "ai1wm-backups", "cache2", "logs", "w3tc-config", "uploads", "upgrade", "wphb-logs", "wpo-cache", "ekwler;qw.txt"],
        "uploadOnSave": true,
        "watcher": {
            "files": "**/*",
            "autoUpload": true,
            "autoDelete": false
        },
        "useTempFile": false,
        "openSsh": false 
    }
© www.soinside.com 2019 - 2024. All rights reserved.