mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-11 07:00:05 +00:00
Fix webview
This commit is contained in:
@ -34,11 +34,13 @@ const config: Configuration = {
|
||||
},
|
||||
};
|
||||
|
||||
const configNode: Configuration = {
|
||||
const configNode = (env: any, argv: { mode: string }): Configuration => {
|
||||
return {
|
||||
...config,
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'static/frontend'),
|
||||
filename: `main.v${version}.[contenthash].js`,
|
||||
filename:
|
||||
argv.mode === 'production' ? `main.v${version}.[contenthash].js` : `main.v${version}.js`,
|
||||
clean: true,
|
||||
publicPath: '/static/frontend/',
|
||||
},
|
||||
@ -149,9 +151,11 @@ const configNode: Configuration = {
|
||||
],
|
||||
}),
|
||||
],
|
||||
};
|
||||
};
|
||||
|
||||
const configAndroid: Configuration = {
|
||||
const configAndroid = (env: any, argv: { mode: string }): Configuration => {
|
||||
return {
|
||||
...config,
|
||||
module: {
|
||||
...config.module,
|
||||
@ -200,7 +204,8 @@ const configAndroid: Configuration = {
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, '../android/app/src/main/assets/static/frontend'),
|
||||
filename: `main.v${version}.[contenthash].js`,
|
||||
filename:
|
||||
argv.mode === 'production' ? `main.v${version}.[contenthash].js` : `main.v${version}.js`,
|
||||
clean: true,
|
||||
publicPath: './static/frontend/',
|
||||
},
|
||||
@ -244,6 +249,10 @@ const configAndroid: Configuration = {
|
||||
],
|
||||
}),
|
||||
],
|
||||
};
|
||||
};
|
||||
|
||||
export default [configNode, configAndroid];
|
||||
export default (env: any, argv: { mode: string }) => [
|
||||
configNode(env, argv),
|
||||
configAndroid(env, argv),
|
||||
];
|
||||
|
Reference in New Issue
Block a user