Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

fix: fix module import of local css files #1099

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Nov 21, 2019

There is an issue when importing local css file as module as the css2json-loader handles it as a module instead of a local file. So, the webpack throws an error that it is not able to find the module. This PR fixes this issue as changing the method used to get the correct file uri with the method used by css-loader itself - https://github.com/webpack-contrib/css-loader/blob/967fb66da2545f04055eb0900a69f86e484dd842/src/utils.js#L220.

Rel to: #1098

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

There is an issue when importing local css file as module as the `css2json-loader` handles it as a module instead of a local file. So, the webpack throws an error that it is not able to find the module. This PR fixes this issue as changing the method used to get the correct file uri with the method used by `css-loader` itself - https://github.com/webpack-contrib/css-loader/blob/967fb66da2545f04055eb0900a69f86e484dd842/src/utils.js#L220.

Rel to: #1098
@cla-bot cla-bot bot added the cla: yes label Nov 21, 2019
@Fatme Fatme added this to the 1.4.0 milestone Nov 21, 2019
@Fatme Fatme added the bug label Nov 21, 2019
@Fatme Fatme self-assigned this Nov 21, 2019
@Fatme
Copy link
Contributor Author

Fatme commented Nov 22, 2019

test cli-smoke cli-templates cli-device cli-run

@rosen-vladimirov
Copy link
Contributor

test cli-templates

@rosen-vladimirov rosen-vladimirov merged commit 66f97ab into master Nov 26, 2019
@rosen-vladimirov rosen-vladimirov deleted the fatme/fix-css2json-loader branch November 26, 2019 07:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants