You've already forked AstralRinth
forked from didirus/AstralRinth
Refactor folder structure
This commit is contained in:
39
src/config/postcss.config.cjs
Normal file
39
src/config/postcss.config.cjs
Normal file
@@ -0,0 +1,39 @@
|
||||
const config = {
|
||||
plugins: [
|
||||
require('postcss-import-ext-glob'),
|
||||
require('postcss-import'),
|
||||
require('postcss-extend-rule'),
|
||||
require('postcss-nested'),
|
||||
require('postcss-preset-env')({
|
||||
stage: 1,
|
||||
features: {
|
||||
'custom-media-queries': {
|
||||
importFrom: [
|
||||
{
|
||||
customMedia: {
|
||||
'--sm': '(min-width: 544px)',
|
||||
'--md': '(min-width: 768px)',
|
||||
'--lg': '(min-width: 1012px)',
|
||||
'--xl': '(min-width: 1280px)',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
}),
|
||||
require('postcss-pxtorem'),
|
||||
process.env.NODE_ENV === 'development' &&
|
||||
require('cssnano')({
|
||||
preset: [
|
||||
'default',
|
||||
{
|
||||
discardComments: {
|
||||
removeAll: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
17
src/config/svelte.config.js
Normal file
17
src/config/svelte.config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import sveltePreprocess from 'svelte-preprocess'
|
||||
import Icons from 'unplugin-icons/vite'
|
||||
import svelteSvg from '@poppanator/sveltekit-svg'
|
||||
|
||||
export const preprocess = sveltePreprocess({
|
||||
postcss: true,
|
||||
preserve: ['ld+json'],
|
||||
})
|
||||
|
||||
export const plugins = [
|
||||
svelteSvg(),
|
||||
Icons({
|
||||
compiler: 'svelte',
|
||||
defaultClass: 'icon',
|
||||
scale: 1,
|
||||
}),
|
||||
]
|
||||
Reference in New Issue
Block a user