Mercurial > code > home > repos > streamed-graph
annotate webpack.config.js @ 34:3d8b98e9c01d
building, but without jsonld so far
author | drewp@bigasterisk.com |
---|---|
date | Fri, 27 Dec 2019 21:26:55 -0800 |
parents | b82c05e22d9a |
children |
rev | line source |
---|---|
20
9ec3cbc8791a
build is running, but no tests, and lots of code is disabled
drewp@bigasterisk.com
parents:
diff
changeset
|
1 const path = require("path"); |
29
45ed53428e74
fix configs to run tests (all in one bundle though)
drewp@bigasterisk.com
parents:
25
diff
changeset
|
2 |
33
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
3 module.exports = { |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
4 entry: ["./src/index.ts"], |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
5 output: { |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
6 library: "streamed_graph", |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
7 filename: "bundle.js", |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
8 path: path.resolve(__dirname, "build"), |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
9 publicPath: "/build/" |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
10 }, |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
11 module: { |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
12 rules: [ |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
13 { |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
14 test: /\.ts$/, |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
15 loader: require.resolve("ts-loader") |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
16 }, |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
17 { test: /\.css$/i, use: ["file-loader"] } |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
18 ] |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
19 }, |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
20 devtool: "source-map", |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
21 resolve: { |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
22 extensions: [".ts", ".js"], |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
23 modules: ["node_modules"] |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
24 }, |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
25 watchOptions: { |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
26 ignored: /node_modules/, |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
27 poll: 200 |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
28 }, |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
29 devServer: { |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
30 port: 8082, |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
31 publicPath: "/build/", |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
32 contentBase: __dirname |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
33 } |
b82c05e22d9a
change to npm with a build that worked better as a local package to be shared
drewp@bigasterisk.com
parents:
31
diff
changeset
|
34 }; |