Skip to content

Commit

Permalink
Merge pull request #50 from wearerequired/microbundle
Browse files Browse the repository at this point in the history
Replace Rollup with Microbundle and create module/modern versions
  • Loading branch information
midzer authored Feb 22, 2021
2 parents 4dcf300 + 0e21686 commit e70ec49
Show file tree
Hide file tree
Showing 19 changed files with 4,439 additions and 9,166 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},

"env": {
"browser": true,
"es6": true,
"node": true
},
Expand Down
23 changes: 23 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../dist/tobii.min.css">
</head>

<body>
<a href="https://via.placeholder.com/600.jpg" class="lightbox"><img src="https://via.placeholder.com/300.jpg" height="150" width="150"></a>
<a href="https://via.placeholder.com/600/09f/fff.jpg" class="lightbox"><img src="https://via.placeholder.com/300/09f/fff.jpg" height="150" width="150"></a>

<script src="../dist/tobii.min.js"></script>
<script>
const tobii = new Tobii()
</script>
</body>

</html>
23 changes: 23 additions & 0 deletions demo/modern.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../dist/tobii.min.css">
</head>

<body>
<a href="https://via.placeholder.com/600.jpg" class="lightbox"><img src="https://via.placeholder.com/300.jpg" height="150" width="150"></a>
<a href="https://via.placeholder.com/600/09f/fff.jpg" class="lightbox"><img src="https://via.placeholder.com/300/09f/fff.jpg" height="150" width="150"></a>

<script type="module">
import Tobii from '../dist/tobii.modern.js';
const tobii = new Tobii();
</script>
</body>

</html>
279 changes: 0 additions & 279 deletions dist/css/tobii.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/css/tobii.min.css

This file was deleted.

Loading

0 comments on commit e70ec49

Please sign in to comment.