Skip to content

Commit 3905e87

Browse files
refactor: icss stuff
1 parent fb75ace commit 3905e87

File tree

4 files changed

+1
-100
lines changed

4 files changed

+1
-100
lines changed

src/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import postcssPkg from 'postcss/package.json';
1616
import schema from './options.json';
1717
import urlPlugin from './plugins/url';
1818
import importPlugin from './plugins/import';
19-
import icssPlugin from './plugins/icss';
2019
import Warning from './Warning';
2120
import SyntaxError from './SyntaxError';
2221

@@ -47,8 +46,6 @@ export default function loader(content, map, meta) {
4746
plugins.push(importPlugin({ importLoaders }));
4847
}
4948

50-
plugins.push(icssPlugin());
51-
5249
// Reuse CSS AST (PostCSS AST e.g 'postcss-loader') to avoid reparsing
5350
if (meta) {
5451
const { ast } = meta;

src/plugins/icss.js

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/plugins/url.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import postcss from 'postcss';
22
import valueParser from 'postcss-value-parser';
33
import { isUrlRequest } from 'loader-utils';
44

5-
import utils from './utils';
6-
75
const pluginName = 'postcss-css-loader-icss-url';
86

97
const walkUrls = (parsed, callback) => {
@@ -90,7 +88,7 @@ export default postcss.plugin(
9088
paths.forEach((path, index) => {
9189
const alias = `__url__${index}__`;
9290

93-
imports[`'${path}'`] = {
91+
imports[`"${path}"`] = {
9492
[alias]: 'default',
9593
};
9694
aliases[path] = alias;
@@ -102,7 +100,5 @@ export default postcss.plugin(
102100
// eslint-disable-next-line no-param-reassign
103101
item.decl.value = item.parsed.toString();
104102
});
105-
106-
css.prepend(utils.createICSSImports(imports));
107103
}
108104
);

src/plugins/utils.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)