summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
new file mode 100644
index 0000000..0bb19e9
--- /dev/null
+++ b/webpack.config.js
@@ -0,0 +1,31 @@
+const path = require('path');
+
+module.exports = {
+ entry: './src/index.ts',
+ devtool: 'inline-source-map',
+ devServer: {
+ contentBase: './dist'
+ },
+ module: {
+ rules: [
+ {
+ test: /\.ts$/,
+ use: 'ts-loader',
+ exclude: /node_modules/
+ },
+ {
+ test: /\.(vs|fs)$/,
+ use: [
+ 'raw-loader'
+ ]
+ }
+ ]
+ },
+ resolve: {
+ extensions: [ ".ts", ".js" ]
+ },
+ output: {
+ filename: 'bundle.js',
+ path: path.resolve(__dirname, 'dist')
+ },
+};