diff --git a/scripts/generateColorLess.js b/scripts/generateColorLess.js index 35ba563fe9..98870d3acc 100644 --- a/scripts/generateColorLess.js +++ b/scripts/generateColorLess.js @@ -58,7 +58,6 @@ styles.forEach((style) => { content += `@import "${style}";\n`; }); content += `@import "${path.join(antd, 'site/theme/static/index.less')}";\n`; -fs.writeFileSync('/tmp/style.less', content); less.render.call(less, content, { paths: [path.join(antd, 'components/style')], diff --git a/scripts/sort-api-table.js b/scripts/sort-api-table.js index 20f0590053..de4615a728 100644 --- a/scripts/sort-api-table.js +++ b/scripts/sort-api-table.js @@ -29,7 +29,7 @@ const sizeBreakPoints = ['xs', 'sm', 'md', 'lg', 'xl']; const groups = { isDynamic: val => /^on[A-Z]/.test(val), - isSize: val => sizeBreakPoints.indexOf(val) > 0, + isSize: val => sizeBreakPoints.indexOf(val) > -1, }; function asciiSort(prev, next) {