Commit 15e48c91 authored by Leopoldthecoder's avatar Leopoldthecoder Committed by 杨奕

remove redundant style files

parent 735d44b5
...@@ -18,6 +18,7 @@ function fileExists(filePath) { ...@@ -18,6 +18,7 @@ function fileExists(filePath) {
themes.forEach((theme) => { themes.forEach((theme) => {
var indexContent = '@import "./base.css";\n'; var indexContent = '@import "./base.css";\n';
Components.forEach(function(key) { Components.forEach(function(key) {
if (['icon', 'option', 'option-group'].indexOf(key) > -1) return;
var fileName = key + '.css'; var fileName = key + '.css';
indexContent += '@import "./' + fileName + '";\n'; indexContent += '@import "./' + fileName + '";\n';
var filePath = path.resolve(basepath, theme, 'src', fileName); var filePath = path.resolve(basepath, theme, 'src', fileName);
......
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
@import "./checkbox-group.css"; @import "./checkbox-group.css";
@import "./switch.css"; @import "./switch.css";
@import "./select.css"; @import "./select.css";
@import "./option.css";
@import "./option-group.css";
@import "./button.css"; @import "./button.css";
@import "./button-group.css"; @import "./button-group.css";
@import "./table.css"; @import "./table.css";
...@@ -42,7 +40,6 @@ ...@@ -42,7 +40,6 @@
@import "./notification.css"; @import "./notification.css";
@import "./slider.css"; @import "./slider.css";
@import "./loading.css"; @import "./loading.css";
@import "./icon.css";
@import "./row.css"; @import "./row.css";
@import "./col.css"; @import "./col.css";
@import "./upload.css"; @import "./upload.css";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment