1 | import {readFile, writeFile} from 'fs'
|
2 |
|
3 | readFile('./normalize.min.css', 'utf-8', (err, contents) => {
|
4 | if (err) return console.log(err)
|
5 | const replaced = contents.replace(/:where\(html\)/g, ':host')
|
6 |
|
7 | writeFile('./normalize.shadow.min.css', replaced, 'utf-8', err => {
|
8 | console.log(err)
|
9 | })
|
10 | }) |
\ | No newline at end of file |