nelle-observer/astro.config.mjs
2024-08-03 10:37:51 -06:00

30 lines
860 B
JavaScript

import { defineConfig } from "astro/config";
import min from "astro-min";
import compressor from "astro-compressor";
import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
integrations: [
mdx(),
min({
do_not_minify_doctype: false,
ensure_spec_compliant_unquoted_attribute_values: false,
keep_closing_tags: false,
keep_comments: false,
keep_html_and_head_opening_tags: false,
keep_input_type_text_attr: false,
keep_spaces_between_attributes: false,
keep_ssi_comments: false,
minify_css: true,
minify_js: true,
preserve_brace_template_syntax: false,
preserve_chevron_percent_template_syntax: false,
remove_bangs: false,
remove_processing_instructions: false,
}),
compressor(),
],
});
// min and compressor always last!