Update for Astro v2.0.0.

This commit is contained in:
KorbsStudio 2023-01-25 03:26:08 -05:00
parent 10692c7394
commit 67914ccc1f
No known key found for this signature in database

View file

@ -1,11 +1,11 @@
// What's all this? // What's all this?
// When preparing your app for production, Astro needs to be built first. // When preparing your app for production, Astro needs to be built first.
// Astro builds with the index file pointing to the wrong path for CSS, as it's using "/assets/" instead of "./assets/", that one dot is important. // Astro builds with the index file pointing to the wrong path for CSS, as it's using "/_astro/" instead of "./_astro/", that one dot is important.
// This file will quickly fix that for you, also it's part of the `yarn build` command so you don't need to worry about it each time you build. // This file will quickly fix that for you, also it's part of the `yarn build` command so you don't need to worry about it each time you build.
var replace = require("replace"); var replace = require("replace");
replace({ replace({
regex: "/assets/", regex: "/_astro/",
replacement: "./assets/", replacement: "./_astro/",
paths: ['./app/index.html'], paths: ['./app/index.html'],
recursive: true, recursive: true,
silent: true, silent: true,