SPA option added
This commit is contained in:
3
test/fixture/spa/.local-web-server.json
Normal file
3
test/fixture/spa/.local-web-server.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"spa": "spa.html"
|
||||
}
|
3
test/fixture/spa/css/style.css
Normal file
3
test/fixture/spa/css/style.css
Normal file
@ -0,0 +1,3 @@
|
||||
body {
|
||||
background-color: IndianRed;
|
||||
}
|
1
test/fixture/spa/one.html
Normal file
1
test/fixture/spa/one.html
Normal file
@ -0,0 +1 @@
|
||||
<h1>one</h1>
|
8
test/fixture/spa/spa.html
Normal file
8
test/fixture/spa/spa.html
Normal file
@ -0,0 +1,8 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
</head>
|
||||
<h1>Single Page App</h1>
|
||||
<h2>Location: <span></span></h2>
|
||||
<script>
|
||||
document.querySelector('h2 span').textContent = window.location.pathname
|
||||
</script>
|
Reference in New Issue
Block a user