traxxx-web/vite.config.js

45 lines
891 B
JavaScript
Raw Normal View History

import vue from '@vitejs/plugin-vue';
import vike from 'vike/plugin'; // eslint-disable-line import/extensions
import postCssGlobalData from '@csstools/postcss-global-data';
import postCssNesting from 'postcss-nesting';
import postCssCustomMedia from 'postcss-custom-media';
2024-05-31 01:48:17 +00:00
import ViteYaml from '@modyfi/vite-plugin-yaml';
export default {
plugins: [
2024-03-23 21:44:49 +00:00
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
vike({
redirects: {
'/': '/updates',
},
2024-03-24 03:31:17 +00:00
trailingSlash: true, // for some reason /tags breaks without this, ERR_TOO_MANY_REDIRECTS
}),
2024-05-31 01:48:17 +00:00
ViteYaml(),
],
css: {
postcss: {
plugins: [
postCssGlobalData({
files: ['./assets/css/breakpoints.css'],
}),
postCssNesting(),
postCssCustomMedia(),
],
},
},
resolve: {
alias: {
'#': __dirname,
'#root': __dirname,
},
},
};