From 1ff191f324b779d54605e39da51e7769da1a3bde Mon Sep 17 00:00:00 2001 From: york yao Date: Mon, 25 Sep 2017 17:42:54 +0800 Subject: [PATCH] add postcss --- .browserslistrc | 2 + clean-scripts.config.js | 3 +- online/file-size.json | 4 +- online/index.html | 2 +- online/index.less | 7 -- online/screenshot-src.html | 11 +++- package.json | 2 + postcss.config.js | 5 ++ yarn.lock | 131 +++++++++++++++++++++++++++++++++++-- 9 files changed, 149 insertions(+), 18 deletions(-) create mode 100644 .browserslistrc create mode 100644 postcss.config.js diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 0000000..2b277c9 --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,2 @@ +> 1% +Last 2 versions diff --git a/clean-scripts.config.js b/clean-scripts.config.js index d681455..12e8492 100644 --- a/clean-scripts.config.js +++ b/clean-scripts.config.js @@ -15,7 +15,8 @@ module.exports = { ], css: [ `lessc online/index.less > online/index.css`, - `cleancss -o online/index.bundle.css online/index.css ./node_modules/github-fork-ribbon-css/gh-fork-ribbon.css` + `postcss online/index.css -o online/index.postcss.css`, + `cleancss -o online/index.bundle.css online/index.postcss.css ./node_modules/github-fork-ribbon-css/gh-fork-ribbon.css` ], clean: `rimraf online/*.bundle-*.js online/*.bundle-*.css` }, diff --git a/online/file-size.json b/online/file-size.json index 0caf968..57917aa 100644 --- a/online/file-size.json +++ b/online/file-size.json @@ -1,6 +1,6 @@ { - "indexBundleCss": "4.15 kB 1.25 kB", + "indexBundleCss": "4.45 kB 1.28 kB", "indexBundleJs": "24.6 kB 6.57 kB", "vendorBundleJs": "1.9 MB 512 kB", - "onlineIndexHtml": "5.18 kB 1.79 kB" + "onlineIndexHtml": "5.48 kB 1.82 kB" } \ No newline at end of file diff --git a/online/index.html b/online/index.html index 426d9f3..020ad66 100644 --- a/online/index.html +++ b/online/index.html @@ -4,7 +4,7 @@