fs.writeFileSync('dist/version.txt', `当前版本: ${pkg.version}`, 'utf8');
试试这个
fs.writeFileSync('dist/version.txt', `uFEFF当前版本: ${pkg.version}`, 'utf8');
548k questions
547k answers
4 comments
86.3k users