You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
690 B
23 lines
690 B
6 years ago
|
var fs2 = require('fs');
|
||
|
|
||
|
function generateNewIndexJsp() {
|
||
|
|
||
|
var filePath = './build/index.html';
|
||
|
|
||
|
var outputPath = filePath
|
||
|
fs2.readFile(filePath, 'utf8', function (err,data) {
|
||
|
if (err) {
|
||
|
return console.log(err);
|
||
|
}
|
||
|
var result = data
|
||
|
.replace('/js/create_kindeditor.js', '/react/build/js/create_kindeditor.js')
|
||
|
.replace(/https:\/\/testeduplus2.educoder.net/g, '');
|
||
|
// .replace(/http:\/\/testbdweb.educoder.net/g, '');
|
||
|
|
||
|
.replace('/css/css_min_all.css', '/react/build/css/css_min_all.css');
|
||
|
|
||
|
fs2.writeFile(outputPath, result, 'utf8', function (err) {
|
||
|
if (err) return console.log(err);
|
||
|
});
|
||
|
});
|
||
|
}
|