changeset 7245:6c3bb9a845d7

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.
author domruf <dominikruf@gmail.com>
date Wed, 25 Oct 2017 19:19:58 +0200
parents 8152f9e6a778
children 722210589dfc
files .hgignore package.json
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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$
--- 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"
   }
 }