Skip to content

Commit d8a1342

Browse files
committed
Use web dev server to serve jquery and wc examples
1 parent f6a6c3b commit d8a1342

File tree

8 files changed

+57
-4483
lines changed

8 files changed

+57
-4483
lines changed

examples/hello-world-jquery/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Example: hello world
22

3-
This is a single file demo of slick router. It's a very simple static twitter like app. It's simple to keep the code short and just show how to get started.
43

5-
$ npm install
6-
$ npm start
4+
5+
6+
In the
77

88
Now open [http://localhost:8000](http://localhost:8000).
99

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<meta charset="utf-8">
5-
<title>Slick Router Hello World</title>
6-
</head>
7-
<body>
8-
</body>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Slick Router Hello World</title>
7+
<link rel="stylesheet" href="./style.css">
8+
</head>
9+
10+
<body>
11+
<script src="./index.js" type="module"></script>
12+
</body>
13+
914
</html>

examples/hello-world-jquery/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import $ from 'jquery'
2-
import { Router } from 'slick-router'
3-
4-
require('./style.css')
1+
import 'jquery'
2+
import { Router } from '../../lib/router.js'
53

64
// create the router
75
let router = new Router({

examples/hello-world-jquery/package.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/hello-world-jquery/webpack.config.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)