Welcome to mirror list, hosted at ThFree Co, Russian Federation.

webpack.config.js « default « admin « wwwroot « hamcore « bin « src - github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e988fe5f9cd57542b6272b00f7204691114e3446 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const path = require('path');

module.exports = {
    mode: "development", // "production" | "development" | "none"

    entry: "./src/ts/main.ts",
    devtool: 'inline-source-map',

    output: {
        path: path.join(__dirname, "out_webpack"),
        filename: "bundle.js",
        libraryTarget: 'var',
        library: 'JS'
    },

    module: {
        rules: [{
            test: /\.ts$/,
            loader: "ts-loader",
            options:
            {
                configFile: "tsconfig_webpack.json"
            },
            include: path.join(__dirname, "./src/ts/"),
            exclude: /node_modules/
        }]
    },

    resolve: {
        modules: [
            "node_modules",
        ],
        extensions: [
            ".ts",
            ".js"
        ]
    }
};