Skip to content

Commit

Permalink
feat(build): add cssnano into postcss to shrink css output (#903)
Browse files Browse the repository at this point in the history
- using [cssnano](https://github.com/cssnano/cssnano) can lower CSS build files, not by much but still is an improvement
  • Loading branch information
ghiscoding authored Feb 14, 2023
1 parent be33a68 commit b1ae2a7
Show file tree
Hide file tree
Showing 2 changed files with 435 additions and 27 deletions.
3 changes: 2 additions & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"sass-build-task:scss-compile:salesforce-bare": "sass src/styles/slickgrid-theme-salesforce.bare.scss dist/styles/css/slickgrid-theme-salesforce.bare.css --style=compressed --quiet-deps --no-source-map",
"sass-build-task:scss-compile:salesforce-lite": "sass src/styles/slickgrid-theme-salesforce.lite.scss dist/styles/css/slickgrid-theme-salesforce.lite.css --style=compressed --quiet-deps --no-source-map",
"sass:build": "run-p sass-build-task:scss-compile:*",
"postsass:build": "postcss --no-map --use autoprefixer --dir dist/styles/css dist/styles/css --style=compressed --quiet-deps --no-source-map",
"postsass:build": "postcss --no-map --use cssnano --use autoprefixer --dir dist/styles/css dist/styles/css --style=compressed --quiet-deps --no-source-map",
"presass:copy": "cross-env copyfiles -f src/styles/*.png dist/styles/css",
"sass:copy": "cross-env copyfiles -f src/styles/*.scss dist/styles/sass",
"postsass:copy": "cross-env copyfiles -f src/styles/*.png dist/styles/sass",
Expand All @@ -76,6 +76,7 @@
"@slickgrid-universal/event-pub-sub": "workspace:~",
"@slickgrid-universal/utils": "workspace:~",
"autocompleter": "^8.0.2",
"cssnano": "^5.1.14",
"dequal": "^2.0.3",
"dompurify": "^2.4.3",
"flatpickr": "^4.6.13",
Expand Down
Loading

0 comments on commit b1ae2a7

Please sign in to comment.