Fix errors from updates

This commit is contained in:
2022-09-05 19:53:10 +02:00
parent 945d7f09d7
commit 5ff82f4ee4
3 changed files with 4 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ const focusVisible = require('postcss-focus-visible')
// const sortMediaQueries = require('postcss-sort-media-queries')
const normalize = require('postcss-normalize')
const dev = process.env.NODE_ENV !== 'development'
module.exports = {
plugins: [
@@ -24,7 +25,7 @@ module.exports = {
normalize({}),
// CSS Nano
!process.env.DEV && cssnano({
!dev && cssnano({
preset: ['default', {
autoprefixer: true,
discardComments: { removeAll: true },

View File

@@ -45,7 +45,7 @@
href={url} class={classes}
{target} {rel}
data-sveltekit-prefetch={url && (isExternal || isProtocol) ? null : true}
data-sveltekit-noscroll={isExternal || isProtocol ? null : true}
data-sveltekit-noscroll={isExternal || isProtocol ? 'off' : ''}
{disabled}
tabindex="0"
on:click

View File

@@ -40,7 +40,7 @@
*/
// Store previous page (for photo Viewer close button)
beforeNavigate(({ from }) => {
$previousPage = from.pathname
$previousPage = from.url.pathname
})
// Define page loading from navigating store