shortcut: shift + x = toggle strikethrough and fade text
[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 const env = process.env.ENVIRONMENT || 'development';
6
7 module.exports = {
8   mode: env,
9   devtool: env === 'environment' ? "inline-source-map" : false,
10   entry: {
11     main: "./src/client.ts",
12   },
13   output: {
14     path: path.resolve(__dirname, './public', 'assets'),
15     filename: "bundle.js" // <--- Will be compiled to this single file
16   },
17   resolve: {
18     extensions: [".ts", ".tsx", ".js"],
19     plugins: [
20       new tsconfigPaths()
21     ]
22   },
23   module: {
24     rules: [
25       { 
26         test: /\.tsx?$/,
27         loader: "ts-loader"
28       }
29     ]
30   },
31   externals: {
32     'jquery': 'jQuery'
33   }
34 };