const fs = require('fs');
const path = require('path');
const analysisList = path.join(__dirname, 'src/views/pages/marketing/MarketingAnalysisV3List.vue');
const strategyList = path.join(__dirname, 'src/views/pages/marketing/MarketingStrategyV3List.vue');
const newStyleList = ``;
[analysisList, strategyList].forEach(file => {
if (fs.existsSync(file)) {
let content = fs.readFileSync(file, 'utf8');
const startIndex = content.indexOf('') + ''.length;
if (startIndex !== -1 && endIndex !== -1) {
content = content.substring(0, startIndex) + newStyleList + content.substring(endIndex);
fs.writeFileSync(file, content);
console.log(file, 'CSS updated successfully!');
} else {
fs.writeFileSync(file, content + '\n' + newStyleList);
console.log(file, 'CSS appended successfully!');
}
}
});