# HG changeset patch # User domruf # Date 2017-10-25 19:19:58 # Node ID 6c3bb9a845d73ed5a06e4ede69205864333e970a # Parent 8152f9e6a7785835e268da63bafd7923e1b2cd81 less: generate map files when building style.css with 'npm run less' The map files allow web development tools ("Firebug" style) to show the .less and .css source instead of the generated style.css . The generated style.css will get a trailing comment with a reference to kallithea/public/css/style.css.map . It will not have any impact on runtime. diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -22,7 +22,7 @@ syntax: regexp ^\.project$ ^\.pydevproject$ ^\.coverage$ -^kallithea/public/css/style\.css$ +^kallithea/public/css/style\.css(\.map)?$ ^theme\.less$ ^kallithea\.db$ ^test\.db$ diff --git a/package.json b/package.json --- a/package.json +++ b/package.json @@ -9,6 +9,6 @@ "less-plugin-clean-css": "~1.5" }, "scripts": { - "less": "lessc --relative-urls kallithea/public/less/main.less kallithea/public/css/style.css" + "less": "lessc --relative-urls --source-map --source-map-less-inline kallithea/public/less/main.less kallithea/public/css/style.css" } }