Skip to content

Instantly share code, notes, and snippets.

@rajasegar
Created March 27, 2020 07:08
Show Gist options
  • Save rajasegar/c90786c784a64b81637fc13b41ab064b to your computer and use it in GitHub Desktop.
Save rajasegar/c90786c784a64b81637fc13b41ab064b to your computer and use it in GitHub Desktop.
Snowpack - How it works?
{
"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"
}
}
<!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>
$ 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