7 lines
263 B
JavaScript
7 lines
263 B
JavaScript
const fs = require('fs');
|
|
if (fs.existsSync('./dist/index.html')) {
|
|
const content = fs.readFileSync('./dist/index.html', { encoding: 'utf8' });
|
|
const newcontent = content.replace(`"/env.js"`, `"./env.js"`);
|
|
fs.writeFileSync('./dist/index.html', newcontent);
|
|
}
|