|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
459 bytes
|
| Line | |
|---|
| 1 | // @ts-check
|
|---|
| 2 |
|
|---|
| 3 | module.exports = function (opts) {
|
|---|
| 4 | opts = opts || {}
|
|---|
| 5 | var method = opts.method || 'replace'
|
|---|
| 6 | return {
|
|---|
| 7 | postcssPlugin: 'postcss-replace-overflow-wrap',
|
|---|
| 8 | Declaration: {
|
|---|
| 9 | 'overflow-wrap': decl => {
|
|---|
| 10 | decl.cloneBefore({ prop: 'word-wrap' })
|
|---|
| 11 | if (method === 'replace') {
|
|---|
| 12 | decl.remove()
|
|---|
| 13 | }
|
|---|
| 14 | }
|
|---|
| 15 | }
|
|---|
| 16 | }
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | module.exports.postcss = true
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.