10000 GitHub - MattDiMu/postcss-replace-overflow-wrap at 6e6b9351be567fd24528d0c2a500efa167d81848
Skip to content

MattDiMu/postcss-replace-overflow-wrap

Repository files navigation

PostCSS Replace Overflow Wrap 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;
}

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.

About

PostCSS plugin to replace overflow-wrap with word-wrap. May optionally retain both declarations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •