Sha256: 25980d6dfdd6035d8258b6faa156caf87ccc9d9e72fae935168b2d0a7b2e6180

Contents?: true

Size: 1.21 KB

Versions: 26

Compression:

Stored size: 1.21 KB

Contents

# PostCSS Replace Overflow Wrap [![CSS Standard Status][css-img]][css] [![Build Status][ci-img]][ci]

[PostCSS] plugin to replace overflow-wrap with word-wrap. May optionally retain both declarations.

[PostCSS]: https://github.com/postcss/postcss
[css-img]: https://jonathantneal.github.io/css-db/badge/css-text-overflow-wrap-property.svg
[css]:     https://jonathantneal.github.io/css-db/#css-text-overflow-wrap-property
[ci-img]:  https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap.svg
[ci]:      https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap


```css
/* before */
.foo {
    overflow-wrap: break-word;
}

/* after */
.foo {
    word-wrap: break-word;
}
```

```css
/* before, when the option { method: 'copy' } is passed */
.foo {
    overflow-wrap: break-word;
}

/* after */
.foo {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
```

## Usage

```js
/* default usage, with no options (method = replace) */
postcss([ require('postcss-replace-overflow-wrap') ])
```

```js
/* add word-wrap, but keep overflow-wrap */
postcss([ require('postcss-replace-overflow-wrap') ])({ method: 'copy' })
```
See [PostCSS] docs for examples for your environment.

Version data entries

26 entries across 25 versions & 8 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/postcss-preset-env/node_modules/postcss-replace-overflow-wrap/README.md
disco_app-0.18.0 test/dummy/node_modules/postcss-replace-overflow-wrap/README.md
disco_app-0.18.2 test/dummy/node_modules/postcss-replace-overflow-wrap/README.md
disco_app-0.16.1 test/dummy/node_modules/postcss-replace-overflow-wrap/README.md
disco_app-0.15.2 test/dummy/node_modules/postcss-replace-overflow-wrap/README.md
disco_app-0.18.4 test/dummy/node_modules/postcss-replace-overflow-wrap/README.md
disco_app-0.18.1 test/dummy/node_modules/postcss-replace-overflow-wrap/README.md
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/postcss-replace-overflow-wrap/README.md
disco_app-0.14.0 test/dummy/node_modules/postcss-replace-overflow-wrap/README.md
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/postcss-replace-overflow-wrap/README.md
tang-0.2.1 spec/tang_app/node_modules/postcss-replace-overflow-wrap/README.md
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/postcss-replace-overflow-wrap/README.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/postcss-replace-overflow-wrap/README.md
ruby2js-4.0.4 lib/tasks/testrails/node_modules/postcss-replace-overflow-wrap/README.md
ruby2js-4.0.3 lib/tasks/testrails/node_modules/postcss-replace-overflow-wrap/README.md
tang-0.2.0 spec/tang_app/node_modules/postcss-replace-overflow-wrap/README.md
tang-0.1.0 spec/tang_app/node_modules/postcss-replace-overflow-wrap/README.md
tang-0.0.9 spec/tang_app/node_modules/postcss-replace-overflow-wrap/README.md
enju_library-0.3.8 spec/dummy/node_modules/postcss-replace-overflow-wrap/README.md
jester-data-8.0.0 node_modules/postcss-replace-overflow-wrap/README.md