postcss-url icon indicating copy to clipboard operation
postcss-url copied to clipboard

PostCSS plugin to rebase url(), inline or copy asset.

Results 39 postcss-url issues
Sort by recently updated
recently updated
newest added

Found some unexpected behaviour when using assetsPath. Scenario CSS Source: /style/css_src/index.css Font Assets: /style/fonts/ Image Assets: /style/images/ PostCSS Generated CSS: /style/css/index.css I am referencing my assets as such: ``` @font-face...

help wanted

I want to embed my font and image files into my js file using postcss-url. Here is my postcss config: ``` module.exports = { plugins: { tailwindcss: { config: join(__dirname,...

I want to use postcss-url in a [Remix](https://remix.run/) project. The general setup is [described in their docs](https://remix.run/docs/en/v1/guides/styling#postcss) with a directory layout that looks like this: ``` styles/ app.css

the typing for the `Options` interface does not include the `encodeType` option, but it is present in the code, for example [here](https://github.com/postcss/postcss-url/blob/c2523fb55497ca9bce1df5e2df5a40b8e41ee66a/src/type/inline.js#L33)

I have a font-face block as follows: ``` @font-face { font-family: 'FontAwesome'; src: url('~font-awesome/fonts/fontawesome-webfont.eot?v=4.7.0'); src: url('~font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'); font-weight: normal; font-style: normal; } ``` `postcss-url` can't seem to resolve `~font-awesome/fonts/fontawesome-webfont.eot` to...

It would be great to include some examples for `postcss-import` integration as lot of people using this plugin will be using it together. Right now, it's not clear at all...

I'm seeing a strange result with the below config: ``` require('postcss-url')({ url: 'copy', basePath: path.resolve('node_modules'), assetsPath: 'assets/images' useHash: true }), ``` Upon debug, `bathPath` is evaluated (as expected) as `project_root/node_modules`....

Hi, i know that you do not encourage the use of copy, but i have a tricky need. I have a node_module with a css file and relative font urls...

None of the basic examples in the readme work for `@import url(...)` constructions, they just stay the same.