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

View File

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

View File

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