peach a19a732be8 commit message | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
CHANGELOG.md | %!s(int64=2) %!d(string=hai) anos | |
LICENSE | %!s(int64=2) %!d(string=hai) anos | |
README.md | %!s(int64=2) %!d(string=hai) anos | |
index.js | %!s(int64=2) %!d(string=hai) anos | |
package.json | %!s(int64=2) %!d(string=hai) anos |
PostCSS plugin to replace overflow-wrap with word-wrap. May optionally retain both declarations.
/* before */
.foo {
overflow-wrap: break-word;
}
/* after */
.foo {
word-wrap: break-word;
}
/* before, when the option { method: 'copy' } is passed */
.foo {
overflow-wrap: break-word;
}
/* after */
.foo {
word-wrap: break-word;
overflow-wrap: break-word;
}
/* default usage, with no options (method = replace) */
postcss([ require('postcss-replace-overflow-wrap') ])
/* add word-wrap, but keep overflow-wrap */
postcss([ require('postcss-replace-overflow-wrap') ])({ method: 'copy' })
See PostCSS docs for examples for your environment.