forked from HydraCG/Heracles.ts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.config.js
49 lines (48 loc) · 1012 Bytes
/
webpack.config.js
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
39
40
41
42
43
44
45
46
47
48
49
const path = require("path");
const webpack = require("webpack");
module.exports = {
entry: "index.ts",
mode: "production",
output: {
filename: "[name].js",
sourceMapFilename: "[name].js.map"
},
module: {
rules: [
{
test: /\.tsx?$/,
use: "ts-loader",
exclude: [path.resolve("node_modules")]
},
{
test: /\.jsx?$/,
loader: "babel-loader",
include: [
path.resolve("src"),
path.resolve("integration-tests"),
],
query: {
presets: [ "env", "stage-0" ]
},
},
{
test: /\.ttl/,
use: "raw-loader",
include: [path.resolve("tests")]
}
]
},
resolve: {
extensions: [".ts", ".js"],
mainFields: ["jsnext:main", "browser", "main"]
},
plugins: [
new webpack.SourceMapDevToolPlugin({
filename: null,
test: /\.(ts|js)($|\?)/i,
exclude: [/node_modules/]
})
],
bail: false,
stats: "errors-only"
};