Gulpfile创建2套CSS文件

我的gulpfile正在创建2套CSS文件。一旦解析了一个partial,然后解析了另一个,则解析了主要的scss文件。我只需要在同级文件夹'css'中设置一组文件。我的源文件是:

  • assets / gulpfile.js
  • assets / scss / _partials-etc.scss
  • assets / scss / styles.scss

我想要的目标文件是:

  

assets / css / styles.scss

仅当我保存styles.scss文件时,它才能正确生成该文件。当我保存部分内容时,它还会显示 assets / scss / css / styles.css

这是我的gulpfile:

Can’t select database
We were able to connect to the database server (which means your username and password is okay) but not able to select the [db name] database.

Are you sure it exists?
Does the user root have permission to use the syndb database?
On some systems the name of your database is prefixed with your username,so it would be like username_[db name]. Could that be the problem?
If you don’t know how to set up a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.

如果将dest参数更改为 ../ css ,它将在资产的同级文件夹中生成文件!而不是资产/ CSS。老实说,我说不通。任何帮助,将不胜感激。

编辑我意识到当我保存部分文件时,它正在子文件夹中生成文件。当我保存主文件时,它将正确创建css文件。这是我最近的尝试:https://gist.github.com/andymagill/2749eefedbd241380429043d73e9c48b

simplehzj 回答:Gulpfile创建2套CSS文件

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3132153.html

大家都在问