【问题标题】:Visual Studio Bundler & Minifier - Remove important commands from CSSVisual Studio Bundler & Minifier - 从 CSS 中删除重要命令
【发布时间】:2016-08-18 10:03:33
【问题描述】:

我正在使用 Mads Kristensen 的 VS Extension Bundler & Minifier 版本 2.1.279。

我有一些我捆绑在一起的 css 文件并希望它们缩小。但我也想从压缩包中删除重要的命令。

在 bundleconfig.json 的 bundle 的 minify 选项中使用 "preserveImportantComments": false 时,同样适用于 javascript 命令。但似乎,这个属性只是 JS。

我的问题:有没有办法对 css 文件做同样的事情?

【问题讨论】:

    标签: css visual-studio minify visual-studio-extensions


    【解决方案1】:

    好的,我想通了。对 css 文件使用 "commentMode": "none" 属性可以工作并删除重要的命令。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-17
      • 1970-01-01
      • 2017-12-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多