0.0.3 • Published 6 years ago
kz-printer-helper v0.0.3
electron
依赖 iconv-lite printer 没有写在dependencies中 在项目中自己安装
使用双结构时 printer 找不到路径 在主线程添加
const path = require('path');
const p = path.join(__dirname, '..', 'app', 'node_modules'); // 这个路径是printer 模块安装的位置 根据需要变化
const modulepath = require('module').globalPaths;
modulepath.push(p);