Frontend/25_01_07/mai/node_modules/postcss-replace-overflow-wrap/index.js
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

20 lines
459 B
JavaScript

// @ts-check
module.exports = function (opts) {
opts = opts || {}
var method = opts.method || 'replace'
return {
postcssPlugin: 'postcss-replace-overflow-wrap',
Declaration: {
'overflow-wrap': decl => {
decl.cloneBefore({ prop: 'word-wrap' })
if (method === 'replace') {
decl.remove()
}
}
}
}
}
module.exports.postcss = true