From 7b5104879498146d32b8eaaa3b53a049c9da1fe5 Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Sat, 14 Apr 2018 01:01:24 +0100 Subject: [PATCH] build(examples): add html & webpack config --- examples/svg-waveform/public/index.html | 17 +++++++++++++++++ examples/svg-waveform/webpack.config.js | 20 ++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 examples/svg-waveform/public/index.html create mode 100644 examples/svg-waveform/webpack.config.js diff --git a/examples/svg-waveform/public/index.html b/examples/svg-waveform/public/index.html new file mode 100644 index 0000000000..8001e753ae --- /dev/null +++ b/examples/svg-waveform/public/index.html @@ -0,0 +1,17 @@ + + + + + + + + svg-waveform + + + + +
+ + + + \ No newline at end of file diff --git a/examples/svg-waveform/webpack.config.js b/examples/svg-waveform/webpack.config.js new file mode 100644 index 0000000000..305ca4f67f --- /dev/null +++ b/examples/svg-waveform/webpack.config.js @@ -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" + } +};