mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +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,
|
...config,
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'static/frontend'),
|
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,
|
clean: true,
|
||||||
publicPath: '/static/frontend/',
|
publicPath: '/static/frontend/',
|
||||||
},
|
},
|
||||||
@ -149,9 +151,11 @@ const configNode: Configuration = {
|
|||||||
],
|
],
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const configAndroid: Configuration = {
|
const configAndroid = (env: any, argv: { mode: string }): Configuration => {
|
||||||
|
return {
|
||||||
...config,
|
...config,
|
||||||
module: {
|
module: {
|
||||||
...config.module,
|
...config.module,
|
||||||
@ -200,7 +204,8 @@ const configAndroid: Configuration = {
|
|||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, '../android/app/src/main/assets/static/frontend'),
|
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,
|
clean: true,
|
||||||
publicPath: './static/frontend/',
|
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