Skip to content

Commit eb221d2

Browse files
committed
upgraded parcel in article example
1 parent b40340e commit eb221d2

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ test/screenshots
44
test/videos
55
.build
66
.idea
7+
.parcel-cache

examples/articles/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules
22
dist
3-
.cache
3+
.parcel-cache
44
package-lock.json
55
.npmrc

examples/articles/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h1>Infinite Scroll Example Blog</h1>
3939
</div>
4040
</div>
4141

42-
<script src="./index.js"></script>
42+
<script type="module" src="./index.js"></script>
4343

4444
<footer class="ias-foot">This <a href="https://infiniteajaxscroll.com/examples/articles/">infinite scroll for blog</a> example is powered by <a href="https://infiniteajaxscroll.com">Infinite Ajax Scroll</a></footer>
4545
</body>

examples/articles/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"private": true,
1414
"scripts": {
1515
"build": "parcel build *.html --public-url ./",
16-
"watch": "parcel watch * --public-url ./",
16+
"watch": "parcel watch *.html --public-url ./",
1717
"link": "npm link ../../"
1818
},
1919
"keywords": [
@@ -32,6 +32,6 @@
3232
"@webcreate/infinite-ajax-scroll": "^3.0.0"
3333
},
3434
"devDependencies": {
35-
"parcel-bundler": "^1.12.4"
35+
"parcel": "^2.0.0"
3636
}
3737
}

examples/articles/page2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h1>Pellentesque habitant morbi senectus</h1>
4040
</div>
4141
</div>
4242

43-
<script src="./index.js"></script>
43+
<script type="module" src="./index.js"></script>
4444

4545
<footer class="ias-foot">This <a href="https://infiniteajaxscroll.com/examples/articles/">infinite scroll for blog</a> example is powered by <a href="https://infiniteajaxscroll.com">Infinite Ajax Scroll</a></footer>
4646
</body>

examples/articles/page3.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1>Diam sollicitudin tempor id eu nisl</h1>
3838
</div>
3939
</div>
4040

41-
<script src="./index.js"></script>
41+
<script type="module" src="./index.js"></script>
4242

4343
<footer class="ias-foot">This <a href="https://infiniteajaxscroll.com/examples/articles/">infinite scroll for blog</a> example is powered by <a href="https://infiniteajaxscroll.com">Infinite Ajax Scroll</a></footer>
4444
</body>

0 commit comments

Comments
 (0)