# postcss-embed-url

> PostCSS plugin to emded urls

Latest version **1.0.1** (published 2021-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-embed-url
pnpm add postcss-embed-url
yarn add postcss-embed-url
bun add postcss-embed-url
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-11-18 |
| First published | 2021-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 2 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | TH3_S1LENC3 |
| Maintainers | th3-s1lenc3 |
| Keywords | postcss, css, postcss-plugin, postcss-embed-url |

## Links

- npm: https://www.npmjs.com/package/postcss-embed-url
- Repository: https://github.com/th3-s1lenc3/postcss-embed-url
- Homepage: https://github.com/th3-s1lenc3/postcss-embed-url#readme
- Issues: https://github.com/th3-s1lenc3/postcss-embed-url/issues
- npm.io page: https://npm.io/package/postcss-embed-url

## Dependencies (2)

- [mime-types](https://npm.io/package/mime-types.md) ^2.1.34
- [postcss-value-parser](https://npm.io/package/postcss-value-parser.md) ^4.1.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-11-18
- 1.0.0 — 2021-11-18
- 0.0.0 — 2021-11-18

## README

# postcss-embed-url

[PostCSS] plugin to emded urls.

[PostCSS]: https://github.com/postcss/postcss

```css
.foo {
  src: url("https://example.com/example.jpeg");
}
```

```css
.foo {
  src: url("data:image/jpeg;charset=utf-8;base64,<base64 file content>")
}
```

## Usage

**Step 1:** Install plugin:

```sh
npm install --save-dev postcss postcss-embed-url
```

**Step 2:** Check you project for existed PostCSS config: `postcss.config.js`
in the project root, `"postcss"` section in `package.json`
or `postcss` in bundle config.

If you do not use PostCSS, add it according to [official docs]
and set this plugin in settings.

**Step 3:** Add the plugin to plugins list:

```diff
module.exports = {
  plugins: [
+   require('postcss-embed-url'),
    require('autoprefixer')
  ]
}
```

[official docs]: https://github.com/postcss/postcss#usage

---
_Source: https://npm.io/package/postcss-embed-url · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
