我想在使用 YUI Compressor 压缩之前合并两个 css 文件

I'd like to combine two css files before compressing with YUI Compressor

我需要使用 YUI Compressor 或任何其他插件将 site.css 和 theme.css 组合成 site.min.css 作为 webstorm 上的文件观察器。

我已经设置了 YUI Compressor,我可以生成 site.min.css 或 theme.min.css,但不能将两者合并到一个文件中。

Current file watcher configuration

无法将多个文件传递给文件观察器,而且 YUI Compressor 本身似乎不支持文件合并(https://github.com/yui/yuicompressor/issues/255)。

我建议为此使用 G运行tGulp - 请参阅 grunt-contrib-cssmin, or gulp-uglifycss with gulp-concat. See https://gist.github.com/atelic/8eb577e87a477a0fb411, https://riptutorial.com/gulp/example/13423/concat-and-uglify-js-and-css-files 举一些例子。

您可以 运行 使用 G运行t/Gulp 控制台的任务,或者如果您希望它们 运行 在文件更改时将它们配置为文件观察器