forked from TeselaGen/teselagen-react-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nwb.config.js
59 lines (56 loc) · 1.8 KB
/
nwb.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
50
51
52
53
54
55
56
57
58
59
const path = require("path");
const StatsPlugin = require("stats-webpack-plugin");
let plugins = [];
if (process.env.ANALYZE_BUNDLE) {
plugins.push(new StatsPlugin("stats.json", { chunkModules: true }));
}
module.exports = {
type: "react-component",
npm: {
umd: false
},
// babel: { //tnr: comment this back in once we're at a higher version of cypress on lims
// runtime: false,
// // env: {
// // targets: {
// // // chrome: "78",
// // chrome: "59"
// // }
// // },
// },
webpack: {
aliases: {
// **** You can comment one or more of these in to override an npm module with a local module. *****
// **** Just be sure to comment them back out before committing! *****
// "ve-sequence-utils":
// console.log("comment me back out!") ||
// path.resolve("../../ve-sequence-utils/src/"),
// "@teselagen/react-table":
// console.log("comment me back out!") ||
// path.resolve("../react-table/src/"),
// "bio-parsers":
// console.log("comment me back out!") ||
// path.resolve("../../ve-sequence-parsers/src/parsers/"),
// "open-vector-editor":
// console.log("comment me back out!") ||
// path.resolve("../../openVectorEditor/src/"),
// "teselagen-react-components":
// console.log("comment me back out!") ||
// path.resolve("../../teselagen-react-components/src/"),
// "@teselagen/platform-ux":
// console.log("comment me back out!") ||
// path.resolve("../../teselagen-platform-ux/src/"),
//don't comment this out!
react: path.resolve(__dirname, "node_modules/react")
},
extra: {
plugins,
devtool: "source-map"
}
}
};
// webpack: {
// extra: {
// devtool: 'inline-source-map'
// }
// }