fengch-test-store
v1.0.3
Published
```js
Downloads
251
Readme
// webpack config
module.exports = {
...
module: {
rules: [
{
test: /\.node$/,
loader: "native-ext-loader",
options: {
emit: true,
rewritePath:
process.env.NODE_ENV === "production"
? process.platform === "win32"
? ".\\"
: "../"
: "node_modules/trtc-electron-sdk/build/Release",
},
},
...
],
},
...
}
// package.json
{
...
"trtc_electron" : {
"platform" : "win32",
"arch" : "ia32"
}
...
}
// .npmrc
trtc_electron_platform=win32
trtc_electron_arch=ia32 // only support windows