dependency update, drop focusTrap, first tanstack experiment in RunnersOverview
This commit is contained in:
@@ -1,39 +1,11 @@
|
||||
import svelte from '@sveltejs/vite-plugin-svelte';
|
||||
import { minify } from 'html-minifier';
|
||||
// vite.config.js
|
||||
import { defineConfig } from 'vite';
|
||||
//
|
||||
const indexReplace = () => {
|
||||
return {
|
||||
name: 'html-transform',
|
||||
transformIndexHtml(html) {
|
||||
return minify(html, {
|
||||
collapseWhitespace: true
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
export default defineConfig(({ command, mode }) => {
|
||||
const isProduction = mode === 'production';
|
||||
return {
|
||||
// base: './',
|
||||
build: {
|
||||
polyfillDynamicImport: false,
|
||||
cssCodeSplit: false,
|
||||
minify: isProduction,
|
||||
target: ["es2020", "esnext", "edge88", "chrome87", "safari14"]
|
||||
},
|
||||
plugins: [
|
||||
svelte({
|
||||
//@ts-ignore
|
||||
hot: !isProduction,
|
||||
emitCss: true,
|
||||
extensions: ['.md', '.svx', '.svelte'],
|
||||
preprocess: [
|
||||
//
|
||||
]
|
||||
}),
|
||||
indexReplace()
|
||||
]
|
||||
};
|
||||
});
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
svelte({
|
||||
/* plugin options */
|
||||
})
|
||||
]
|
||||
});
|
||||
Reference in New Issue
Block a user