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