我在项目中使用exceljs
和file-saver.js
,并且在我的开发环境中运行良好,但是当我在prod env中构建时,我无法下载文件了,有人帮助我吗?
当我在产品配置中设置optimization=false
时,效果很好。
angular.json
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
},
"dev": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.ts"
}
]
}
}
我想知道:
2。如果我设置了optimization = false,会发生什么?
非常感谢!
答案 0 :(得分:0)
已解决:
使用
final_df = pd.merge(df_a, df_b[['A', 'B_new','F']], how="left", left_on=['A', 'B'], right_on=['A', 'B_new']);
代替
import {Woekbook} from 'exceljs/dist/exceljs.js';