Skip to content
Merged
Prev Previous commit
Next Next commit
refactor: code
  • Loading branch information
alexander-akait committed Mar 24, 2020
commit 143d3c5495170c826b3d93b8a3c0b7ca10a5b67f
1 change: 0 additions & 1 deletion src/plugins/postcss-icss-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default postcss.plugin(
{
type: 'import',
value: {
type: 'icss',
importName,
url: options.urlHandler ? options.urlHandler(url) : url,
},
Expand Down
1 change: 0 additions & 1 deletion src/plugins/postcss-import-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export default postcss.plugin(pluginName, (options) => (css, result) => {
result.messages.push({
type: 'import',
value: {
type: '@import',
importName,
url: options.urlHandler ? options.urlHandler(url) : url,
},
Expand Down
7 changes: 1 addition & 6 deletions src/plugins/postcss-url-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export default postcss.plugin(pluginName, (options) => (css, result) => {
pluginName,
type: 'import',
value: {
type: 'url',
importName: '___CSS_LOADER_GET_URL_IMPORT___',
url: require.resolve('../runtime/getUrl.js'),
},
Expand All @@ -120,11 +119,7 @@ export default postcss.plugin(pluginName, (options) => (css, result) => {
result.messages.push({
pluginName,
type: 'import',
value: {
type: 'url',
importName,
url: normalizedUrl,
},
value: { importName, url: normalizedUrl },
});
}

Expand Down