PostCSS plugin to replace overflow-wrap with word-wrap. May optionally retain both declarations.
/* before */ /* after */
/* before, when the option { method: 'copy' } is passed */ /* after */
Installation
npm install --save-dev postcss postcss-replace-overflow-wrap
For Postcss 7 or earlier use Version 3 or earlier:
npm install --save-dev postcss-replace-overflow-wrap@3
Usage
/* default usage, with no options (method = replace) */
/* add word-wrap, but keep overflow-wrap */ method: 'copy'
See PostCSS docs for examples for your environment.