-
-
Save bjrn/12ed75661b035185392a587cee576bcd to your computer and use it in GitHub Desktop.
One way to remove doctype on fragments: use "replace" cmd in postbuild step
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "@example/basics", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"dev": "astro dev", | |
"start": "astro dev", | |
"build": "astro build", | |
"postbuild": "replace \"<!DOCTYPE html>\\s*\" \"\" -r --include=\"*fragment.html\" -q", | |
"preview": "astro preview" | |
}, | |
"devDependencies": { | |
"@astrojs/react": "^2.1.1", | |
"astro": "^2.3.2", | |
"globby": "^13.1.4", | |
"mv": "^2.1.1", | |
"react": "^18.2.0", | |
"react-dom": "^18.2.0", | |
"replace": "^1.2.2", | |
"sass": "^1.62.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment