MOBILE-2478 webpack: Use node-loader to load node binary files

main
Dani Palou 2018-07-17 11:34:51 +02:00
parent 3a31ef1806
commit 28db063a29
3 changed files with 227 additions and 84 deletions

View File

@ -26,6 +26,14 @@ const customConfig = {
};
})()
],
module: {
loaders: [
{
test: /\.node$/,
use: 'node-loader'
}
]
}
};
module.exports = {

296
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -91,15 +91,16 @@
},
"devDependencies": {
"@ionic/app-scripts": "3.1.9",
"electron-rebuild": "^1.8.1",
"gulp": "^3.9.1",
"gulp-clip-empty-files": "^0.1.2",
"gulp-flatten": "^0.4.0",
"gulp-rename": "^1.2.2",
"gulp-slash": "^1.1.3",
"node-loader": "^0.6.0",
"through": "^2.3.8",
"typescript": "~2.6.2",
"webpack-merge": "^4.1.2",
"electron-rebuild": "^1.8.1"
"webpack-merge": "^4.1.2"
},
"optionalDependencies": {
"electron-windows-notifications": "^2.1.1",
@ -166,4 +167,4 @@
"confinement": "classic"
}
}
}
}