Skip to content

Commit

Permalink
Upgrade
Browse files Browse the repository at this point in the history
+ upgrade dependencies
+ update astro-icon
- remove astro-compress
- remove astro-prefetch
  • Loading branch information
preetamslot committed Jan 15, 2024
1 parent 5a5b67d commit 8b90b3f
Show file tree
Hide file tree
Showing 16 changed files with 17,322 additions and 8,512 deletions.
16 changes: 6 additions & 10 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const remarkEmbedder = fauxRemarkEmbedder.default;
const oembedTransformer = fauxOembedTransformer.default;
import vue from "@astrojs/vue";
/** @type {import('astro-m2dx').Options} */
import prefetch from "@astrojs/prefetch";
import compress from "astro-compress";
import icon from "astro-icon";

const m2dxOptions = {
exportComponents: true,
unwrapImages: true,
Expand All @@ -24,21 +24,14 @@ const m2dxOptions = {
export default defineConfig({
site: "https://starfunnel.unfolding.io",
integrations: [
icon(),
mdx({}),
sitemap(),
tailwind(),
vue({
appEntrypoint: "/src/pages/_app",
}),
astroImageTools,
/* prefetch(), */
compress({
CSS: true,
HTML: false,
Image: false,
JavaScript: true,
SVG: true,
}),
],
markdown: {
extendDefaultPlugins: true,
Expand Down Expand Up @@ -72,5 +65,8 @@ export default defineConfig({
build: {
inlineStylesheets: "always",
},
prefetch: {
defaultStrategy: "viewport",
},
scopedStyleStrategy: "attribute",
});
Loading

0 comments on commit 8b90b3f

Please sign in to comment.