较少Sourcemap到父目录

时间:2019-06-03 23:36:23

标签: css less

我在目录styles.less中有一个/Content/custom/styles.less文件。
然后我在目录bootstrap.less中有/Content/bootstrap/bootstrap.less

styles.less导入引导程序:

/* bootstrap */
@import "../bootstrap/bootstrap.less";
/* style overrides */
@import "somefile.less"

我正在使用WebCompiler生成CSS以及较少的映射:

{
  "compilers": {
    "less": {
      "autoPrefix": "",
      "cssComb": "none",
      "ieCompat": true,
      "strictMath": false,
      "strictUnits": false,
      "relativeUrls": true,
      "rootPath": "",
      "sourceMapRoot": "",
      "sourceMapBasePath": "",
      "sourceMap": true
    },

当我运行站点时,除了引导映射显示为http://localhost:1234/content/custom/C:/_path_/Content/bootstrap/scaffolding.less

之外,其他所有映射都可以正常工作

我如何将地图设为http://localhost:1234/content/bootstrap/scaffolding.less

0 个答案:

没有答案