Skip to content

Migrate postcss-image-set-function #37

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

Merged
merged 5 commits into from
Nov 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions plugins/postcss-image-set-function/.editorconfig

This file was deleted.

18 changes: 0 additions & 18 deletions plugins/postcss-image-set-function/.github/workflows/test.yml

This file was deleted.

5 changes: 4 additions & 1 deletion plugins/postcss-image-set-function/.gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
node_modules
dist
package-lock.json
yarn.lock
*.log*
*.result.css
.*
*.result.css.map
!.editorconfig
!.gitignore
!.rollup.js
!.tape.js
!.travis.yml
!.github
65 changes: 0 additions & 65 deletions plugins/postcss-image-set-function/CONTRIBUTING.md

This file was deleted.

12 changes: 2 additions & 10 deletions plugins/postcss-image-set-function/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,7 @@ Add [PostCSS image-set() Function] to your project:
npm install postcss-image-set-function --save-dev
```

Use [PostCSS image-set() Function] to process your CSS:

```js
const postcssImageSetFunction = require('postcss-image-set-function');

postcssImageSetFunction.process(YOUR_CSS /*, processOptions, pluginOptions */);
```

Or use it as a [PostCSS] plugin:
Use [PostCSS image-set() Function] as a [PostCSS] plugin:

```js
const postcss = require('postcss');
Expand Down Expand Up @@ -166,6 +158,6 @@ grunt.initConfig({
[PostCSS]: https://github.com/postcss/postcss
[PostCSS CLI]: https://github.com/postcss/postcss-cli
[PostCSS Loader]: https://github.com/postcss/postcss-loader
[PostCSS image-set() Function]: https://github.com/jonathantneal/postcss-image-set-function
[PostCSS image-set() Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-image-set-function
[React App Rewire PostCSS]: https://github.com/csstools/react-app-rewire-postcss
[React App Rewired]: https://github.com/timarney/react-app-rewired
16 changes: 4 additions & 12 deletions plugins/postcss-image-set-function/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,7 @@ Add [PostCSS image-set() Function] to your project:
npm install postcss-image-set-function --save-dev
```

Use [PostCSS image-set() Function] to process your CSS:

```js
const postcssImageSetFunction = require('postcss-image-set-function');

postcssImageSetFunction.process(YOUR_CSS /*, processOptions, pluginOptions */);
```

Or use it as a [PostCSS] plugin:
Use [PostCSS image-set() Function] as a [PostCSS] plugin:

```js
const postcss = require('postcss');
Expand Down Expand Up @@ -154,8 +146,8 @@ in, other factors can affect the chosen image. For example, if the user is on a
slow mobile connection, the browser may prefer to select a lower-res image
rather than wait for a larger, resolution-matching image to load.

[cli-img]: https://github.com/csstools/postcss-image-set-function/workflows/test/badge.svg
[cli-url]: https://github.com/csstools/postcss-image-set-function/actions/workflows/test.yml?query=workflow/test
[cli-img]: https://github.com/csstools/postcss-plugins/workflows/test/badge.svg
[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
[css-img]: https://cssdb.org/badge/image-set-function.svg
[css-url]: https://cssdb.org/#image-set-function
[git-img]: https://img.shields.io/badge/support-chat-blue.svg
Expand All @@ -168,4 +160,4 @@ rather than wait for a larger, resolution-matching image to load.
[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss
[PostCSS]: https://github.com/postcss/postcss
[PostCSS Loader]: https://github.com/postcss/postcss-loader
[PostCSS image-set() Function]: https://github.com/jonathantneal/postcss-image-set-function
[PostCSS image-set() Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-image-set-function
57 changes: 0 additions & 57 deletions plugins/postcss-image-set-function/index.js

This file was deleted.

2 changes: 0 additions & 2 deletions plugins/postcss-image-set-function/lib/get-comma.js

This file was deleted.

23 changes: 0 additions & 23 deletions plugins/postcss-image-set-function/lib/get-image.js

This file was deleted.

25 changes: 0 additions & 25 deletions plugins/postcss-image-set-function/lib/get-media.js

This file was deleted.

12 changes: 0 additions & 12 deletions plugins/postcss-image-set-function/lib/handle-invalidation.js

This file was deleted.

82 changes: 0 additions & 82 deletions plugins/postcss-image-set-function/lib/process-image-set.js

This file was deleted.

Loading