mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor on theme structure
This commit is contained in:
parent
c828680c69
commit
43d561a2b6
16 changed files with 345 additions and 330 deletions
|
@ -138,6 +138,17 @@ export default {
|
|||
}
|
||||
|
||||
return '';
|
||||
},
|
||||
minifyCSS(css) {
|
||||
return css
|
||||
? css
|
||||
.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g, '')
|
||||
.replace(/ {2,}/g, ' ')
|
||||
.replace(/ ([{:}]) /g, '$1')
|
||||
.replace(/([;,]) /g, '$1')
|
||||
.replace(/ !/g, '!')
|
||||
.replace(/: /g, ':')
|
||||
: css;
|
||||
}
|
||||
},
|
||||
dom: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue