mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
feat: use electron-ipc-proxy to export service in preload script
This commit is contained in:
parent
301ecddf0b
commit
46cabec9d8
24 changed files with 708 additions and 38 deletions
|
|
@ -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'"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue