Skip to content

Commit

Permalink
sort v2-compatible-reset
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Dec 31, 2019
1 parent 9edf3fb commit 341a4ae
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions genModuleLess.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const genModuleLess = (parents, isModule) => {
!filePath.includes('global.less') &&
!filePath.includes('bezierEasing.less') &&
!filePath.includes('colorPalette.less') &&
!filePath.includes('tinyColor.less') &&
!filePath.includes('v2-compatible-reset'),
!filePath.includes('tinyColor.less'),
)
.forEach(realPath => {
// post css add localIdentNamePlugin
Expand All @@ -57,6 +56,12 @@ const genModuleLess = (parents, isModule) => {
content.sort((a, b) => {
const aName = a.messages.name;
const bName = b.messages.name;
if (aName.includes('v2-compatible-reset')) {
return 1;
}
if (bName.includes('v2-compatible-reset')) {
return -1;
}
return fileString.indexOf(aName) - fileString.indexOf(bName);
}),
)
Expand Down

0 comments on commit 341a4ae

Please sign in to comment.