Skip to content

Commit

Permalink
(fix) PWA Manifest should respect the OpenMRS public path
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Nov 1, 2023
1 parent 1ad5b21 commit e88efa2
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions packages/shell/esm-app-shell/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,20 +279,6 @@ module.exports = (env, argv = {}) => {
},
plugins: [
openmrsCleanBeforeBuild && new CleanWebpackPlugin(),
new WebpackPwaManifest({
name: "OpenMRS",
short_name: "OpenMRS",
description:
"Open source Health IT by and for the entire planet, starting with the developing world.",
background_color: "#ffffff",
theme_color: "#000000",
icons: [
{
src: resolve(__dirname, "src/assets/logo-512.png"),
sizes: [96, 128, 144, 192, 256, 384, 512],
},
],
}),
new HtmlWebpackPlugin({
inject: false,
scriptLoading: "blocking",
Expand All @@ -317,6 +303,21 @@ module.exports = (env, argv = {}) => {
Object.keys(coreRoutes).length > 0 && JSON.stringify(coreRoutes),
},
}),
new WebpackPwaManifest({
name: "OpenMRS",
short_name: "OpenMRS",
publicPath: openmrsPublicPath,
description:
"Open source Health IT by and for the entire planet, starting with the developing world.",
background_color: "#ffffff",
theme_color: "#000000",
icons: [
{
src: resolve(__dirname, "src/assets/logo-512.png"),
sizes: [96, 128, 144, 192, 256, 384, 512],
},
],
}),
new CopyWebpackPlugin({
patterns: [{ from: resolve(__dirname, "src/assets") }, ...appPatterns],
}),
Expand Down

0 comments on commit e88efa2

Please sign in to comment.