Skip to content

Commit

Permalink
build(examples): add html & webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Apr 14, 2018
1 parent 6198899 commit 7b51048
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/svg-waveform/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>svg-waveform</title>
<link href="https://unpkg.com/tachyons@4.9.1/css/tachyons.min.css" rel="stylesheet">
</head>

<body class="ma0 pa0 lh-copy sans-serif">
<div id="app"></div>
<script type="text/javascript" src="bundle.js"></script>
</body>

</html>
20 changes: 20 additions & 0 deletions examples/svg-waveform/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
const path = require("path");

module.exports = {
entry: "./src/index.ts",
output: {
path: path.resolve(__dirname, "public"),
filename: "bundle.js"
},
resolve: {
extensions: [".ts", ".js"]
},
module: {
rules: [
{ test: /\.ts$/, use: "ts-loader" }
]
},
devServer: {
contentBase: "public"
}
};

0 comments on commit 7b51048

Please sign in to comment.