Skip to content

Commit 6386ed8

Browse files
committed
Make static assets copy to the dist folder when running example app
1 parent b442874 commit 6386ed8

10 files changed

+267
-24
lines changed

.parcelrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["@parcel/config-default"],
3+
"reporters": ["...", "parcel-reporter-static-files-copy"]
4+
}

example/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function init() {
214214

215215
statsContainer.innerHTML = "Fetching...";
216216

217-
fetch( "/example/data/tetra.json" )
217+
fetch( "/data/tetra.json" )
218218
.then( res => {
219219

220220
if ( res.ok ) {

0 commit comments

Comments
 (0)