Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
dir-index-html
Commits
4ca119ce
Unverified
Commit
4ca119ce
authored
Oct 01, 2021
by
Ben Lubar
Committed by
GitHub
Oct 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: avoid unnecessary css parsing (#53)
Closes #52
parent
5c6147fd
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dir-index.html
dir-index.html
+3
-3
package.json
package.json
+1
-1
No files found.
dir-index.html
View file @
4ca119ce
This diff is collapsed.
Click to expand it.
package.json
View file @
4ca119ce
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
"build:clean"
:
"rm dir-index.html"
,
"build:clean"
:
"rm dir-index.html"
,
"build:remove-style-links"
:
"sed '/<link rel=
\"
stylesheet
\"
/d' ./src/dir-index.html > ./base-html.html"
,
"build:remove-style-links"
:
"sed '/<link rel=
\"
stylesheet
\"
/d' ./src/dir-index.html > ./base-html.html"
,
"build:minify-wrap-css"
:
"(echo
\"
<style>
\"
&& cat ./src/icons.css ./src/style.css | tr -d
\"\t\n\r\"
&& echo && echo
\"
</style>
\"
) > ./minified-wrapped-style.html"
,
"build:minify-wrap-css"
:
"(echo
\"
<style>
\"
&& cat ./src/icons.css ./src/style.css | tr -d
\"\t\n\r\"
&& echo && echo
\"
</style>
\"
) > ./minified-wrapped-style.html"
,
"build:combine-html-css"
:
"sed '/<
head
>/ r ./minified-wrapped-style.html' ./base-html.html > ./dir-index.html"
,
"build:combine-html-css"
:
"sed '/<
\\
/title
>/ r ./minified-wrapped-style.html' ./base-html.html > ./dir-index.html"
,
"build:remove-unused"
:
"rm ./base-html.html && rm ./minified-wrapped-style.html"
"build:remove-unused"
:
"rm ./base-html.html && rm ./minified-wrapped-style.html"
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment