Browse
For agents
About
GutSlider – All in One Slider and Carousel Blocks for Gutenberg
/
2.11.1
GutSlider – All in One Slider and Carousel Blocks for Gutenberg
v2.11.1
Switch version
3.1.0
3.0.0
2.13.2
2.13.1
2.13.0
trunk
1.0.0
2.1.0
2.10.0
2.10.1
2.11.0
2.11.1
2.11.2
2.11.3
2.11.4
2.12.0
2.2.1
2.2.2
2.3.0
2.4.0
2.5.1
2.5.3
2.5.4
2.5.5
2.6.1
All 56 releases
Overview
Code
slider-blocks
/
src
/
helper
/
softminify.js
softminify.js
in GutSlider – All in One Slider and Carousel Blocks for Gutenberg 2.11.1, at src/helper/softminify.js
6 lines
289 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
//
softMinifyCssStrings is for minifying the css which is in the style tag as a string for view.js
2
const
softMinifyCssStrings
=
(
cssString
=
'
'
)
=>
3
cssString
.
replace
(
/
\s
+
/
g
,
'
'
)
.
replace
(
/
\.
zb
\-
[
\w
\-
\s
\.
\,
\:
\>
\(
\)
\d
\+
\[
\]
\#
\>
]
+
\{
[
\s
]
+
\}
/
g
,
'
'
)
;
4
5
export
default
softMinifyCssStrings
;
6