postcss-replace-overflow-wrap
PostCSS plugin to replace overflow-wrap with word-wrap or optionally retain both declarations.
Last updated 9 years ago by mattdimu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install postcss-replace-overflow-wrap 
SYNC missed versions from official npm registry.

PostCSS Replace Overflow Wrap CSS Standard Status Build Status

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.

Current Tags

  • 4.0.0                                ...           latest (4 years ago)

4 Versions

  • 4.0.0                                ...           4 years ago
  • 3.0.0                                ...           7 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |