Browse Source

compress using clean-css

Ben Dwyer 4 năm trước cách đây
mục cha
commit
365a41e281

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 165
seedlet/assets/css/print.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1929
seedlet/assets/css/style-editor.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 2043
seedlet/assets/css/style-woocommerce-rtl.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 2045
seedlet/assets/css/style-woocommerce.css


+ 20 - 0
seedlet/package-lock.json

@@ -371,6 +371,26 @@
         "yargs": "^13.3.0"
         "yargs": "^13.3.0"
       }
       }
     },
     },
+    "clean-css": {
+      "version": "4.2.3",
+      "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.2.3.tgz",
+      "integrity": "sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA==",
+      "dev": true,
+      "requires": {
+        "source-map": "~0.6.0"
+      }
+    },
+    "clean-css-cli": {
+      "version": "4.3.0",
+      "resolved": "https://registry.npmjs.org/clean-css-cli/-/clean-css-cli-4.3.0.tgz",
+      "integrity": "sha512-8GHZfr+mG3zB/Lgqrr27qHBFsPSn0fyEI3f2rIZpxPxUbn2J6A8xyyeBRVTW8duDuXigN0s80vsXiXJOEFIO5Q==",
+      "dev": true,
+      "requires": {
+        "clean-css": "^4.2.1",
+        "commander": "2.x",
+        "glob": "7.x"
+      }
+    },
     "cliui": {
     "cliui": {
       "version": "5.0.0",
       "version": "5.0.0",
       "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",
       "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",

+ 7 - 4
seedlet/package.json

@@ -10,6 +10,7 @@
     "@wordpress/browserslist-config": "^2.2.2",
     "@wordpress/browserslist-config": "^2.2.2",
     "autoprefixer": "^9.5.1",
     "autoprefixer": "^9.5.1",
     "chokidar-cli": "^2.1.0",
     "chokidar-cli": "^2.1.0",
+    "clean-css-cli": "^4.3.0",
     "minimist": "^1.2.2",
     "minimist": "^1.2.2",
     "node-sass": "^4.13.1",
     "node-sass": "^4.13.1",
     "npm-run-all": "^4.1.5",
     "npm-run-all": "^4.1.5",
@@ -47,10 +48,12 @@
     "build:print": "node-sass assets/sass/print.scss assets/css/print.css --output-style expanded --indent-type tab --indent-width 1 --source-map true",
     "build:print": "node-sass assets/sass/print.scss assets/css/print.css --output-style expanded --indent-type tab --indent-width 1 --source-map true",
     "build:ie": "postcss style.css -o assets/css/ie.css",
     "build:ie": "postcss style.css -o assets/css/ie.css",
     "build:ie-editor": "postcss assets/css/style-editor.css -o assets/css/ie-editor.css",
     "build:ie-editor": "postcss assets/css/style-editor.css -o assets/css/ie-editor.css",
-    "build:compress-style": "node-sass assets/sass/style.scss style.css --output-style compressed --indent-type tab --indent-width 1 --source-map true",
-    "build:compress-style-editor": "node-sass assets/sass/style-editor.scss assets/css/style-editor.css --output-style expanded --indent-type tab --indent-width 1 --source-map true",
-    "build:compress-woocommerce": "node-sass assets/sass/style-woocommerce.scss assets/css/style-woocommerce.css --output-style expanded --indent-type tab --indent-width 1 --source-map true",
-    "build:compress-print": "node-sass assets/sass/print.scss assets/css/print.css --output-style expanded --indent-type tab --indent-width 1 --source-map true",
+    "build:compress-style": "cleancss -o style.css style.css",
+    "build:compress-style-rtl": "cleancss -o style-rtl.css style-rtl.css",
+    "build:compress-style-editor": "cleancss -o assets/css/style-editor.css assets/css/style-editor.css",
+    "build:compress-woocommerce": "cleancss -o assets/css/style-woocommerce.css assets/css/style-woocommerce.css",
+    "build:compress-woocommerce-rtl": "cleancss -o assets/css/style-woocommerce-rtl.css assets/css/style-woocommerce-rtl.css",
+    "build:compress-print": "cleancss -o assets/css/print.css assets/css/print.css",
     "build": "run-s \"build:*\"",
     "build": "run-s \"build:*\"",
     "watch": "chokidar \"**/*.scss\" -c \"npm run build\" --initial",
     "watch": "chokidar \"**/*.scss\" -c \"npm run build\" --initial",
     "child-theme": "sh ../theme-dev-utils/build-child-theme.sh"
     "child-theme": "sh ../theme-dev-utils/build-child-theme.sh"

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 2 - 0
seedlet/style-rtl.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
seedlet/style.css


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
seedlet/style.css.map


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác