We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c69a17 commit 0e41511Copy full SHA for 0e41511
index.js
@@ -4,8 +4,8 @@ module.exports = postcss.plugin('postcss-replace-overflow-wrap', (opts) => {
4
opts = opts || {};
5
const method = opts.method || 'replace';
6
7
- return (css, result) => { // eslint-disable-line no-unused-vars
8
- css.walkDecls('overflow-wrap', (decl, i) => { // eslint-disable-line no-unused-vars
+ return (css) => {
+ css.walkDecls('overflow-wrap', (decl) => {
9
decl.cloneBefore({ prop: 'word-wrap' });
10
if (method === 'replace') {
11
decl.remove();
0 commit comments