You've already forked netlify-plugin-cache
mirror of
https://github.com/jakejarvis/netlify-plugin-cache.git
synced 2025-10-27 16:35:59 -04:00
add *very* basic example site
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Local Netlify folder
|
||||||
|
.netlify
|
||||||
1
.npmignore
Normal file
1
.npmignore
Normal file
@@ -0,0 +1 @@
|
|||||||
|
example/
|
||||||
5
example/.gitignore
vendored
Normal file
5
example/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Local Netlify folder
|
||||||
|
.netlify
|
||||||
|
|
||||||
|
cache-output.json
|
||||||
|
package-lock.json
|
||||||
3
example/README.md
Normal file
3
example/README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[](https://app.netlify.com/sites/infallible-wing-581e78/deploys)
|
||||||
|
|
||||||
|
https://infallible-wing-581e78.netlify.app/cache-output.json
|
||||||
1
example/cached/file1.md
Normal file
1
example/cached/file1.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
This is a file. A cached file.
|
||||||
BIN
example/cached/file2.gif
Normal file
BIN
example/cached/file2.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 MiB |
8
example/index.html
Normal file
8
example/index.html
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<h1>Hello world!</h1>
|
||||||
|
<p>This is an example of <a href="https://github.com/jakejarvis/netlify-plugin-cache"><code>netlify-plugin-cache</code></a>. ⚡</p>
|
||||||
|
<p><img src="cached/file2.gif"></p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
7
example/netlify.toml
Normal file
7
example/netlify.toml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-cache"
|
||||||
|
[plugins.inputs]
|
||||||
|
paths = ["cached"]
|
||||||
|
|
||||||
|
[[plugins]]
|
||||||
|
package = "netlify-plugin-debug-cache"
|
||||||
10
example/package.json
Normal file
10
example/package.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"private": true,
|
||||||
|
"name": "netlify-plugin-cache-example",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Just a test of netlify-plugin-cache.",
|
||||||
|
"dependencies": {
|
||||||
|
"netlify-plugin-cache": "*",
|
||||||
|
"netlify-plugin-debug-cache": "^1.0.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user