Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative urls are not resolved in extracted css #100

Open
GreenGremlin opened this issue Jan 3, 2019 · 0 comments
Open

Relative urls are not resolved in extracted css #100

GreenGremlin opened this issue Jan 3, 2019 · 0 comments

Comments

@GreenGremlin
Copy link

Given the following config:

    "css-modules-transform", {
      "generateScopedName": "[name]__[local]___[hash:base64:5]",
      "extractCss": "./dist/styles.css",
    }

And the following css:

/* src/components/SpecialButton.css */
.button___3y7di {
    background-image: url('./buttonBackground.png');
}

I would expect output to contain relative urls, resolved to the output directory:

/* dist/styles.css */
.SpecialButton__button___3y7di {
    background-image: url('./components/buttonBackground.png');
}

But I get this:

/* dist/styles.css */
.SpecialButton__button___3y7di {
    background-image: url('./buttonBackground.png');
}

Is there something I'm missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant