diff --git a/rollup.config.js b/rollup.config.js index 4a34f91c..9b7cde26 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -103,20 +103,20 @@ export default { onwarn }, - serviceworker: { - input: config.serviceworker.input(), - output: config.serviceworker.output(), - plugins: [ - resolve(), - replace({ - "process.browser": true, - "process.env.NODE_ENV": JSON.stringify(mode) - }), - commonjs(), - !dev && terser() - ], + // serviceworker: { + // input: config.serviceworker.input(), + // output: config.serviceworker.output(), + // plugins: [ + // resolve(), + // replace({ + // "process.browser": true, + // "process.env.NODE_ENV": JSON.stringify(mode) + // }), + // commonjs(), + // !dev && terser() + // ], - preserveEntrySignatures: false, - onwarn - } + // preserveEntrySignatures: false, + // onwarn + // } }; diff --git a/src/service-worker.js b/src/_service-worker.js similarity index 97% rename from src/service-worker.js rename to src/_service-worker.js index 02ab1d2d..f89df038 100644 --- a/src/service-worker.js +++ b/src/_service-worker.js @@ -33,7 +33,7 @@ self.addEventListener('activate', event => { /** - * Fetch the asset from the network and store it in the cache. + * Fetch the asset from the network and store it in the cache. * Fall back to the cache if the user is offline. */ async function fetchAndCache(request) { diff --git a/src/components/HashTags.svelte b/src/components/HashTags.svelte new file mode 100644 index 00000000..f733c298 --- /dev/null +++ b/src/components/HashTags.svelte @@ -0,0 +1,9 @@ + + +
+ {#each tags as tag} + #{tag.toLowerCase()} + {/each} +
diff --git a/src/components/Nav.svelte b/src/components/Nav.svelte index a63e9d7b..3555636a 100644 --- a/src/components/Nav.svelte +++ b/src/components/Nav.svelte @@ -46,17 +46,31 @@ a { text-decoration: none; padding: 1em 0.5em; - display: block; } diff --git a/src/components/NewQuestion.svelte b/src/components/NewQuestion.svelte index 79561c60..51904d02 100644 --- a/src/components/NewQuestion.svelte +++ b/src/components/NewQuestion.svelte @@ -9,7 +9,7 @@ } - \ No newline at end of file diff --git a/src/components/SideBar.svelte b/src/components/SideBar.svelte index 9481b62d..eba3568c 100644 --- a/src/components/SideBar.svelte +++ b/src/components/SideBar.svelte @@ -22,6 +22,7 @@