-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
36 lines (34 loc) · 971 Bytes
/
webpack.config.js
File metadata and controls
36 lines (34 loc) · 971 Bytes
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
const path = require("path");
var glob = require("glob");
//const { CleanWebpackPlugin } = require("clean-webpack-plugin");
// TODO: Automate entries
module.exports = {
entry: {
'site': './scripts/site.ts',
'filebrowser': './scripts/filebrowser.ts',
'models/path': './scripts/models/path.ts',
'models/navigation_item': './scripts/models/navigation_item.ts',
'models/navigation_item_type': './scripts/models/navigation_item_type.ts',
'components': glob.sync("./scripts/components/**/*.ts")
},
output: {
path: path.resolve(__dirname, "wwwroot/js/"),
filename: "[name].js",
publicPath: "/",
},
resolve: {
extensions: [".js", ".ts"],
},
module: {
rules: [
{
test: /\.ts$/,
use: "ts-loader",
}
],
},
devtool: 'source-map',
plugins: [
//new CleanWebpackPlugin(),
]
};