* ./cptable in ./node_modules/xlsx-style/dist/cpexcel.js
vue.config.js中如此这般修改
const CompressionPlugin = require("compression-webpack-plugin")
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '/' : '/',
configureWebpack: () => {
var obj = {
externals: {
'./cptable': 'var cptable',
'../xlsx.js': 'var _XLSX'
}
};
if (process.env.NODE_ENV == "production") {
obj.plugins = [
new CompressionPlugin({
test: /.js$|.html$|.css/,
threshold: 10240,
deleteOriginalAssets: false
}),
];
}
return obj;
},
}
参照;
https://stackoverflow.com/questions/54306961/getting-error-for-xlsx-style-after-entering-command-yarn-start
https://www.programmersought.com/article/4000147640/
https://github.com/protobi/js-xlsx/issues/78
最后
以上就是怕孤独方盒最近收集整理的关于* ./cptable in ./node_modules/xlsx-style/dist/cpexcel.js的全部内容,更多相关*内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复