traxxx-web/vite.config.js

36 lines
699 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';
export default {
plugins: [
vue(),
vike({
redirects: {
'/': '/updates',
},
2024-01-26 00:31:15 +00:00
trailingSlash: true, // for some reason /tags breaks without this
}),
],
css: {
postcss: {
plugins: [
postCssGlobalData({
files: ['./assets/css/breakpoints.css'],
}),
postCssNesting(),
postCssCustomMedia(),
],
},
},
resolve: {
alias: {
'#': __dirname,
'#root': __dirname,
},
},
};