mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: electron whitescreen (#4013)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createConfiguration, rootPath, publicPath } from './config.js';
|
||||
import { createConfiguration, rootPath, getPublicPath } from './config.js';
|
||||
import { merge } from 'webpack-merge';
|
||||
import { join, resolve } from 'node:path';
|
||||
import type { BuildFlags } from '@affine/cli/config';
|
||||
@@ -55,7 +55,7 @@ export default async function (cli_env: any, _: any) {
|
||||
inject: 'body',
|
||||
scriptLoading: 'module',
|
||||
minify: false,
|
||||
publicPath,
|
||||
publicPath: getPublicPath(flags),
|
||||
chunks: [
|
||||
'_plugin/index.test',
|
||||
'plugin',
|
||||
|
||||
Reference in New Issue
Block a user