Removed unused files
This commit is contained in:
parent
2ce291b550
commit
72dcaa0f7e
2 changed files with 0 additions and 47 deletions
|
|
@ -1,30 +0,0 @@
|
|||
// @ts-check
|
||||
import { defineConfig } from 'astro/config'
|
||||
import solidJs from '@astrojs/solid-js'
|
||||
import compressor from 'astro-compressor'
|
||||
import robotsTxt from '@itsmatteomanf/astro-robots-txt'
|
||||
import purgecss from 'astro-purgecss'
|
||||
|
||||
export default defineConfig({
|
||||
output: 'static',
|
||||
prefetch: true,
|
||||
integrations: [
|
||||
solidJs(),
|
||||
compressor({ gzip: false, brotli: true }),
|
||||
robotsTxt(),
|
||||
purgecss({
|
||||
fontFace: true,
|
||||
variables: true,
|
||||
}),
|
||||
],
|
||||
vite: {
|
||||
css: {
|
||||
transformer: 'lightningcss',
|
||||
},
|
||||
},
|
||||
build: {
|
||||
assets: '_fwt',
|
||||
inlineStylesheets: 'never',
|
||||
},
|
||||
site: 'http://localhost:4321',
|
||||
})
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
import sharp from 'sharp'
|
||||
|
||||
const path = require('path')
|
||||
|
||||
const generateFavicon = async () => {
|
||||
const inputSrc = 'src/assets/images/logo.png'
|
||||
const faviconPath = path.join(__dirname, '../public/favicon.png')
|
||||
|
||||
try {
|
||||
await sharp(inputSrc).png({ quality: 90 }).resize(50).toFile(faviconPath)
|
||||
console.log('Favicon generated successfully')
|
||||
} catch (error) {
|
||||
console.error('Error generating favicon:', error)
|
||||
}
|
||||
}
|
||||
|
||||
export default generateFavicon
|
||||
Loading…
Add table
Add a link
Reference in a new issue