Skip to content
Snippets Groups Projects
Commit a0755ea9 authored by Hartung, Michael's avatar Hartung, Michael
Browse files

do not prefix primeng classes starting with "pi-"

parent 3b246798
No related branches found
No related tags found
No related merge requests found
...@@ -261,7 +261,7 @@ class ParserCSS: ...@@ -261,7 +261,7 @@ class ParserCSS:
def prefixClasses(self, classListString): def prefixClasses(self, classListString):
classListStringList = classListString.split('.') classListStringList = classListString.split('.')
classListStringList = [x for x in classListStringList if len(x)] classListStringList = [x for x in classListStringList if len(x)]
classListStringList = [self.PREFIXCLASS + x if not (x.startswith('ng-') or x.startswith('p-') or x.startswith('drugstone-plugin-') or x.startswith('fa-')) else '.' + x for x in classListStringList] classListStringList = [self.PREFIXCLASS + x if not (x.startswith('ng-') or x.startswith('p-') or x.startswith('pi-') or x.startswith('drugstone-plugin-') or x.startswith('fa-')) else '.' + x for x in classListStringList]
return '.'.join(classListStringList) return '.'.join(classListStringList)
def prefixId(self, classListString): def prefixId(self, classListString):
...@@ -378,14 +378,14 @@ def parse(): ...@@ -378,14 +378,14 @@ def parse():
buildManager.buildDevDir() buildManager.buildDevDir()
buildManager.parseApp() buildManager.parseApp()
except: except:
buildManager.cleanup() buildManager.cleanup()
raise Exception('ERROR: CSS prefix script failed.') raise Exception('ERROR: CSS prefix script failed.')
print('Parsing done!') print('Parsing done!')
def cleanup(): def cleanup():
print('Starting cleanup...') print('Starting cleanup...')
buildManager = BuildManager(ORIGDIR) buildManager = BuildManager(ORIGDIR)
buildManager.cleanup() buildManager.cleanup()
print('Cleanup done!') print('Cleanup done!')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment