postcss-replace-overflow-wrap
Advanced tools
Weekly downloads
Readme
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;
}
npm install --save-dev postcss postcss-replace-overflow-wrap
For Postcss 7 or earlier use Version 3 or earlier:
npm install --save-dev [email protected]
/* 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.
PostCSS plugin to replace overflow-wrap with word-wrap or optionally retain both declarations.
The npm package postcss-replace-overflow-wrap receives a total of 7,113,868 weekly downloads. As such, postcss-replace-overflow-wrap popularity was classified as popular.
We found that postcss-replace-overflow-wrap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.