rewrite.. examples.. docs.. refactor
This commit is contained in:
5
example/rewrite/.local-web-server.json
Normal file
5
example/rewrite/.local-web-server.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"rewrite": [
|
||||
{ "from": "/css/*", "to": "/styles/$1" }
|
||||
]
|
||||
}
|
10
example/rewrite/index.html
Normal file
10
example/rewrite/index.html
Normal file
@ -0,0 +1,10 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
</head>
|
||||
<h1>Amazing Page</h1>
|
||||
<p>
|
||||
With a freaky triangle..
|
||||
</p>
|
||||
<svg width="500" height="500">
|
||||
<polygon points="250,0 0,500 500,500"></polygon>
|
||||
</svg>
|
7
example/rewrite/styles/style.css
Normal file
7
example/rewrite/styles/style.css
Normal file
@ -0,0 +1,7 @@
|
||||
body {
|
||||
background-color: #AA3939;
|
||||
color: #FFE2E2
|
||||
}
|
||||
svg {
|
||||
fill: #000
|
||||
}
|
Reference in New Issue
Block a user