feat: use electron-ipc-proxy to export service in preload script

This commit is contained in:
tiddlygit-test 2021-01-23 18:42:33 +08:00
parent 301ecddf0b
commit 46cabec9d8
24 changed files with 708 additions and 38 deletions

View file

@ -7,7 +7,7 @@ const CopyPlugin = require('copy-webpack-plugin');
exports.main = [
// we only need one instance of TsChecker, it will check main and renderer all together
new ForkTsCheckerWebpackPlugin(),
// new ForkTsCheckerWebpackPlugin(),
new CopyPlugin({
// to is relative to ./.webpack/main/
patterns: [{ from: 'src/services/wiki/wiki-worker.js', to: 'wiki-worker.js' }],
@ -26,10 +26,10 @@ exports.main = [
];
exports.renderer = [
new webpack.DefinePlugin({
'process.env': '{}',
global: {},
}),
// new webpack.DefinePlugin({
// 'process.env': '{}',
// global: {},
// }),
new CspHtmlWebpackPlugin(
{
'base-uri': ["'self'"],