mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-23 03:42:04 +03:00
Handle new Vite format in diff cleaning for tests.
This commit is contained in:
parent
643abc0591
commit
81888ea995
2
examples/escaping/dist/escaping/index.html
vendored
2
examples/escaping/dist/escaping/index.html
vendored
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title></title>
|
||||
<link rel="modulepreload" crossorigin href="/elm.HASH.js"><link rel="modulepreload" crossorigin href="/assets/index.HASH.js"><link rel="preload" href="/assets/index.HASH.css" as="style">
|
||||
<link rel="modulepreload" crossorigin href="/elm.HASH.js"><link rel="preload" href="/assets/index.HASH.css" as="style"><link rel="modulepreload" crossorigin href="/assets/index.HASH.js">
|
||||
<script defer src="/elm.HASH.js" type="text/javascript"></script>
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
"scripts": {
|
||||
"start": "elm-pages dev",
|
||||
"test": "elm-pages build --debug && npm run clean-diff && elm-pages build && npm run clean-diff",
|
||||
"clean-diff": "sed -E -i.bak 's/\\.[a-f0-9]{8}\\.([a-z]{2,4})/.HASH.\\1/gi' ./dist/escaping/index.html && sed -i.bak 's/<meta name=\"generator\".*$//gi' ./dist/escaping/index.html && git diff --exit-code ./dist",
|
||||
"clean-diff": "sed -E -i.bak 's/[.-][a-f0-9]{8}([.-][a-z]{2,4})/.HASH\\1/gi' ./dist/escaping/index.html && sed -i.bak 's/<meta name=\"generator\".*$//gi' ./dist/escaping/index.html && git diff --exit-code ./dist",
|
||||
"build": "elm-pages build"
|
||||
},
|
||||
"author": "Dillon Kearns",
|
||||
|
Loading…
Reference in New Issue
Block a user