🧹 cleanups

This commit is contained in:
2021-03-14 19:39:46 +01:00
parent bb25203104
commit f14885854e
6 changed files with 379 additions and 90 deletions

View File

@@ -1,10 +1,8 @@
import { resolve } from 'path';
import svelte from '@svitejs/vite-plugin-svelte';
import windiCSS from 'vite-plugin-windicss';
import { minify } from 'html-minifier';
// const { defineConfig } = require("vite");
import { defineConfig } from 'vite';
//
const indexReplace = () => {
return {
name: 'html-transform',
@@ -24,17 +22,6 @@ export default defineConfig(({ command, mode }) => {
cssCodeSplit: false,
minify: isProduction
},
optimizeDeps: {
exclude: [ '@roxi/routify' ]
},
resolve: {
dedupe: [ '@roxi/routify' ],
alias: {
svelte: resolve(__dirname, 'node_modules/svelte'),
'@': resolve(__dirname, './src')
}
},
plugins: [
windiCSS({
//@ts-ignore