Skip to content

Commit

Permalink
修正 less 文件排序不正确的问题 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jing-wu committed Jul 22, 2020
1 parent deb93f6 commit 796d428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lessOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
// 3. site/theme/**.less
const lessOrder = filename => {
let order = 0;
if (filename.includes('index.less')) {
if (!filename.includes('index.less')) {
order += 1;
}
if (!filename.includes('site/theme')) {
if (filename.includes('site/theme')) {
order += 2;
}
return order;
Expand Down

0 comments on commit 796d428

Please sign in to comment.