|
@@ -66,7 +66,8 @@ const getSheet = function (filename) {
|
|
|
const writeToAssets = function (filename, content) {
|
|
|
let writeFileName = filename.replace(/\.xlsx|\.xls/, '.js').replace(dataPrefix, "")
|
|
|
let writePath = path.join(__dirname, dataPath, writeFileName)
|
|
|
- fs.writeFile(writePath, 'module.exports=' + JSON.stringify(content))
|
|
|
+ let string = JSON.stringify(content);
|
|
|
+ fs.writeFile(writePath, 'module.exports=' + string)
|
|
|
// console.log(JSON.stringify(content, null, 2));
|
|
|
}
|
|
|
|