diff --git a/esbuildconf.js b/esbuildconf.js index 7da29f3..8062f34 100644 --- a/esbuildconf.js +++ b/esbuildconf.js @@ -8,19 +8,22 @@ import { replaceOnCopyPlugin } from './tools/esbuild-helper.js' // see docs at https://esbuild.github.io/api/ export const options = { entryPoints: [ - 'src/main.js', - 'src/main.css', - 'src/index.html', 'src/about.html', 'src/assets/comment.svg', 'src/assets/heart-fill.svg', + 'src/assets/nostr-favicon.png', + 'src/assets/nostr-favicon.svg', 'src/assets/star.svg', 'src/assets/star-fill.svg', 'src/favicon.ico', + 'src/index.html', + 'src/main.css', + 'src/main.js', + 'src/manifest.json', ], outdir: 'dist', //entryNames: '[name]-[hash]', TODO: replace urls in index.html with hashed paths - loader: {'.html': 'copy', '.svg': 'copy', '.ico': 'copy'}, + loader: {'.html': 'copy', '.ico': 'copy', '.png': 'copy', '.svg': 'copy'}, bundle: true, platform: 'browser', minify: false, // TODO: true for release and enable sourcemap @@ -36,6 +39,7 @@ export const options = { }), NodeGlobalsPolyfillPlugin({buffer: true}), replaceOnCopyPlugin(/about\.html$/), + replaceOnCopyPlugin(/manifest\.json$/), ] }; diff --git a/src/about.html b/src/about.html index 64d4e9e..869f122 100644 --- a/src/about.html +++ b/src/about.html @@ -5,6 +5,7 @@