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

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/hamcore/wwwroot/admin/default/webpack.config.js')
-rw-r--r--src/bin/hamcore/wwwroot/admin/default/webpack.config.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/bin/hamcore/wwwroot/admin/default/webpack.config.js b/src/bin/hamcore/wwwroot/admin/default/webpack.config.js
new file mode 100644
index 00000000..e988fe5f
--- /dev/null
+++ b/src/bin/hamcore/wwwroot/admin/default/webpack.config.js
@@ -0,0 +1,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"
+ ]
+ }
+};