Skip to content

Commit

Permalink
Fix import module
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Sep 12, 2016
1 parent 4442788 commit c734a4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core.js
Expand Up @@ -47,13 +47,13 @@ export default function (defaultLibraryName) {
path = `${libraryName}/${libDir}/${styleLibraryName}/${camel2Dash(methodName)}.css`;
}

file.addImport(`${libraryName}/${libDir}/${styleLibraryName}/base.css`);
file.addImport(path);
file.addImport(`${libraryName}/${libDir}/${styleLibraryName}/base.css`, 'default');
file.addImport(path, 'default');
} else {
if (style === true) {
file.addImport(`${path}/style.css`);
file.addImport(`${path}/style.css`, 'default');
} else if (style) {
file.addImport(`${path}/${style}`);
file.addImport(`${path}/${style}`, 'default');
}
}
}
Expand Down

0 comments on commit c734a4f

Please sign in to comment.