postcss-replace-overflow-wrap (4.0.0)
Published 2026-02-24 14:03:19 +00:00 by atheaadmin
Installation
registry=npm install postcss-replace-overflow-wrap@4.0.0"postcss-replace-overflow-wrap": "4.0.0"About this package
PostCSS Replace Overflow Wrap

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;
}
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) */
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.
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| ava | ^0.25.0 |
| eslint | ^5.3.0 |
| eslint-config-logux | ^24.0.0 |
| eslint-config-postcss | ^3.0.3 |
| eslint-config-standard | ^11.0.0 |
| eslint-plugin-es5 | ^1.3.1 |
| eslint-plugin-import | ^2.13.0 |
| eslint-plugin-jest | ^21.20.1 |
| eslint-plugin-node | ^7.0.1 |
| eslint-plugin-promise | ^3.8.0 |
| eslint-plugin-security | ^1.4.0 |
| eslint-plugin-standard | ^3.1.0 |
| postcss | ^8.0.3 |
Peer Dependencies
| ID | Version |
|---|---|
| postcss | ^8.0.3 |
Keywords
postcss
css
postcss-plugin
overflow-wrap
word-wrap