From a47638aab5af2a425b2bc6342c7bed6a79a771da Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 9 Sep 2017 02:52:01 +0200 Subject: Initial setup (Webpack, TypeScript, WebGL) --- webpack.config.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 webpack.config.js (limited to 'webpack.config.js') 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') + }, +}; -- cgit v1.2.3