Created
March 27, 2020 07:08
-
-
Save rajasegar/c90786c784a64b81637fc13b41ab064b to your computer and use it in GitHub Desktop.
Snowpack - How it works?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "snowpack-demo", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", | |
"license": "ISC", | |
"dependencies": { | |
"finance": "1.0.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Snowpack Demo</title> | |
</head> | |
<body> | |
<h1>Hello World</h1> | |
<script type="module" src="/src/app.js"></script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir snowpack-demo | |
$ cd snowpack-demo | |
$ npm init -y | |
$ touch index.html | |
$ mkdir src | |
$ touch src/app.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment