# HG changeset patch # User domruf # Date 1508951998 -7200 # 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 -r 8152f9e6a778 -r 6c3bb9a845d7 .hgignore --- a/.hgignore Wed Oct 25 20:37:22 2017 +0200 +++ b/.hgignore Wed Oct 25 19:19:58 2017 +0200 @@ -22,7 +22,7 @@ ^\.project$ ^\.pydevproject$ ^\.coverage$ -^kallithea/public/css/style\.css$ +^kallithea/public/css/style\.css(\.map)?$ ^theme\.less$ ^kallithea\.db$ ^test\.db$ diff -r 8152f9e6a778 -r 6c3bb9a845d7 package.json --- a/package.json Wed Oct 25 20:37:22 2017 +0200 +++ b/package.json Wed Oct 25 19:19:58 2017 +0200 @@ -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" } }