purgetss 5.3.3 → 5.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -545,7 +545,7 @@ VS Code `settings.json`:
545
545
  "svelte",
546
546
  "xml",
547
547
  ],
548
- "html-css-class-completion.excludeGlobPattern": "purgetss/fonts/**/*.{css,html}",
548
+ "html-css-class-completion.excludeGlobPattern": "**/node_modules/**,purgetss/fonts/**/*.{css,html}",
549
549
  }
550
550
  ```
551
551
 
@@ -142,7 +142,7 @@ VS Code `settings.json`:
142
142
  "svelte",
143
143
  "xml",
144
144
  ],
145
- "html-css-class-completion.excludeGlobPattern": "purgetss/fonts/**/*.{css,html}",
145
+ "html-css-class-completion.excludeGlobPattern": "**/node_modules/**,purgetss/fonts/**/*.{css,html}",
146
146
  }
147
147
  ```
148
148
 
package/index.js CHANGED
@@ -407,7 +407,7 @@ function buildCustomFonts(options) {
407
407
 
408
408
  tssClasses += processFontMeta(fontMeta);
409
409
 
410
- tssClasses += `\n'.${getFileName(file).toLowerCase()}': { font: { fontFamily: '${fontMeta.postScriptName.replace(/\//g, '')}' } }\n`;
410
+ tssClasses += `\n'.${getFileName(file)}': { font: { fontFamily: '${fontMeta.postScriptName.replace(/\//g, '')}' } }\n`;
411
411
 
412
412
  //! Copy Font File
413
413
  makeSureFolderExists(projectFontsFolder);
@@ -709,7 +709,7 @@ function getFiles(dir) {
709
709
  }
710
710
 
711
711
  function getFileName(file) {
712
- return file.split('/').pop().split('.').shift();
712
+ return file.split('/').pop().split('.').shift().replace(/ /g, '-').toLowerCase();
713
713
  }
714
714
 
715
715
  function getRules(data) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purgetss",
3
- "version": "5.3.3",
3
+ "version": "5.3.4",
4
4
  "description": "An extension for Titanium SDK that contains a set of Tailwind-like classes to easily and quickly create beautifully designed mobile apps.",
5
5
  "main": "index.js",
6
6
  "bin": {