-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: cssnano optimizations (#2616)
- Loading branch information
1 parent
a5cd36c
commit 7f45ea9
Showing
7 changed files
with
573 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
--- | ||
"@spectrum-css/accordion": minor | ||
"@spectrum-css/actionbar": minor | ||
"@spectrum-css/actionbutton": minor | ||
"@spectrum-css/actiongroup": minor | ||
"@spectrum-css/actionmenu": minor | ||
"@spectrum-css/alertbanner": minor | ||
"@spectrum-css/alertdialog": minor | ||
"@spectrum-css/asset": minor | ||
"@spectrum-css/assetcard": minor | ||
"@spectrum-css/assetlist": minor | ||
"@spectrum-css/avatar": minor | ||
"@spectrum-css/badge": minor | ||
"@spectrum-css/breadcrumb": minor | ||
"@spectrum-css/button": minor | ||
"@spectrum-css/buttongroup": minor | ||
"@spectrum-css/calendar": minor | ||
"@spectrum-css/card": minor | ||
"@spectrum-css/checkbox": minor | ||
"@spectrum-css/clearbutton": minor | ||
"@spectrum-css/closebutton": minor | ||
"@spectrum-css/coachindicator": minor | ||
"@spectrum-css/coachmark": minor | ||
"@spectrum-css/colorarea": minor | ||
"@spectrum-css/colorhandle": minor | ||
"@spectrum-css/colorloupe": minor | ||
"@spectrum-css/colorslider": minor | ||
"@spectrum-css/colorwheel": minor | ||
"@spectrum-css/combobox": minor | ||
"@spectrum-css/contextualhelp": minor | ||
"@spectrum-css/datepicker": minor | ||
"@spectrum-css/dial": minor | ||
"@spectrum-css/dialog": minor | ||
"@spectrum-css/divider": minor | ||
"@spectrum-css/dropindicator": minor | ||
"@spectrum-css/dropzone": minor | ||
"@spectrum-css/fieldgroup": minor | ||
"@spectrum-css/fieldlabel": minor | ||
"@spectrum-css/floatingactionbutton": minor | ||
"@spectrum-css/helptext": minor | ||
"@spectrum-css/icon": minor | ||
"@spectrum-css/illustratedmessage": minor | ||
"@spectrum-css/infieldbutton": minor | ||
"@spectrum-css/inlinealert": minor | ||
"@spectrum-css/link": minor | ||
"@spectrum-css/logicbutton": minor | ||
"@spectrum-css/menu": minor | ||
"@spectrum-css/miller": minor | ||
"@spectrum-css/modal": minor | ||
"@spectrum-css/opacitycheckerboard": minor | ||
"@spectrum-css/page": minor | ||
"@spectrum-css/pagination": minor | ||
"@spectrum-css/picker": minor | ||
"@spectrum-css/pickerbutton": minor | ||
"@spectrum-css/popover": minor | ||
"@spectrum-css/progressbar": minor | ||
"@spectrum-css/progresscircle": minor | ||
"@spectrum-css/radio": minor | ||
"@spectrum-css/rating": minor | ||
"@spectrum-css/search": minor | ||
"@spectrum-css/sidenav": minor | ||
"@spectrum-css/site": minor | ||
"@spectrum-css/slider": minor | ||
"@spectrum-css/splitview": minor | ||
"@spectrum-css/statuslight": minor | ||
"@spectrum-css/steplist": minor | ||
"@spectrum-css/stepper": minor | ||
"@spectrum-css/swatch": minor | ||
"@spectrum-css/swatchgroup": minor | ||
"@spectrum-css/switch": minor | ||
"@spectrum-css/table": minor | ||
"@spectrum-css/tabs": minor | ||
"@spectrum-css/tag": minor | ||
"@spectrum-css/taggroup": minor | ||
"@spectrum-css/textfield": minor | ||
"@spectrum-css/thumbnail": minor | ||
"@spectrum-css/toast": minor | ||
"@spectrum-css/tooltip": minor | ||
"@spectrum-css/tray": minor | ||
"@spectrum-css/treeview": minor | ||
"@spectrum-css/typography": minor | ||
"@spectrum-css/underlay": minor | ||
"@spectrum-css/well": minor | ||
--- | ||
|
||
## Build optmizations to support minification | ||
|
||
Output for all component CSS files is now being run through a lightweight optimizer (cssnano) which significantly reduces unnecessary whitespace. These changes reduce file size but should not have any impact on the rendering of the component. By removing unnecessary whitespace from var functions, we are making it easier to effectively minify our provided CSS assets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
{ | ||
"tabWidth": 2, | ||
"useTabs": true | ||
"useTabs": true, | ||
"overrides": [ | ||
{ | ||
"files": "*.css", | ||
"options": { | ||
"printWidth": 500 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.