bug: unfolding a node doesnt save state
[apps/outliner/.git] / webpack.config.js
1 //webpack.config.js
2 const path = require('path');
3 const tsconfigPaths = require('tsconfig-paths-webpack-plugin');
4
5 module.exports = {
6   mode: "development",
7   devtool: "inline-source-map",
8   entry: {
9     main: "./src/client.ts",
10   },
11   output: {
12     path: path.resolve(__dirname, './public', 'assets'),
13     filename: "bundle.js" // <--- Will be compiled to this single file
14   },
15   resolve: {
16     extensions: [".ts", ".tsx", ".js"],
17     plugins: [
18       new tsconfigPaths()
19     ]
20   },
21   module: {
22     rules: [
23       { 
24         test: /\.tsx?$/,
25         loader: "ts-loader"
26       }
27     ]
28   },
29   externals: {
30     'jquery': 'jQuery'
31   }
32 };