mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
18 lines
367 B
JavaScript
18 lines
367 B
JavaScript
const replace = require('replace-in-file')
|
|
module.exports = {
|
|
helpers: {
|
|
replace: (files, from, to) => {
|
|
try {
|
|
const results = replace.sync({
|
|
files,
|
|
from,
|
|
to,
|
|
})
|
|
console.log('Replacement results:', results)
|
|
} catch (error) {
|
|
console.error('Error occurred:', error)
|
|
}
|
|
},
|
|
},
|
|
}
|