Browse Source

Added scss build

zhixin 7 years ago
parent
commit
9e28f3eb1a
2 changed files with 5 additions and 2 deletions
  1. 4 2
      .gitignore
  2. 1 0
      package.json

+ 4 - 2
.gitignore

@@ -4,8 +4,10 @@ bower_components
 # docs site
 _gh_pages
 
-# build the extensions
-extensions.js
+# use scss instead
+src/bootstrap-table.css
+src/bootstrap-table.css.map
+.sass-cache
 
 # old docs
 docs_

+ 1 - 0
package.json

@@ -23,6 +23,7 @@
     "js:build:concat": "babel src/locale -o dist/bootstrap-table-locale-all.js && NODE_ENV=production babel src/locale -o dist/bootstrap-table-locale-all.min.js",
     "js:build:banner": "find dist -name '*.min.js' -exec headr {} -o {} --version --homepage --author --license \\;",
     "js:build": "run-s js:build:*",
+    "css:build:scss": "sass src/bootstrap-table.scss src/bootstrap-table.css",
     "css:build:base": "find src -name '*.css' | sed -e 'p;s/src/dist/' | xargs -n2 cp",
     "css:build:min": "find dist -name '*.css' | sed -e 'p;s/.css/.min.css/' | xargs -n2 cssmin",
     "css:build:banner": "find dist -name '*.min.css' -exec headr {} -o {} --version --homepage --author --license \\;",