Irina Glushko 2389e7160b HW1 done | пре 3 година | |
---|---|---|
.. | ||
CHANGELOG.md | пре 3 година | |
LICENSE | пре 3 година | |
README.md | пре 3 година | |
index.js | пре 3 година | |
package.json | пре 3 година |
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.