forked from TeselaGen/openVectorEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnwb.config.js
49 lines (46 loc) · 1.39 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
const path = require("path");
module.exports = {
type: "react-component",
npm: {
esModules: true,
umd: {}
},
babel: {
presets: ["es2015", "react", "stage-0"]
},
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-range-utils":
// console.log("comment me back out!") ||
// path.resolve("../ve-range-utils/src/"),
// "ve-sequence-utils":
// console.log("comment me back out!") ||
// path.resolve("../ve-sequence-utils/src/"),
// "bio-parsers":
// console.log("comment me back out!") ||
// path.resolve("../ve-sequence-parsers/src/parsers/"),
// "teselagen-react-components":
// console.log("comment me back out!") ||
// path.resolve("../teselagen-react-components/src/"),
// "@teselagen/apollo-methods":
// console.log("comment me back out!") ||
// path.resolve("../teselagen-common/apollo-methods/src/"),
//don't comment this out!
react: path.resolve(__dirname, "node_modules/react")
},
uglify: false,
extra: {
devtool: "source-map"
},
extractCSS: {
filename: "[name].css"
}
}
};
// webpack: {
// extra: {
// devtool: 'inline-source-map'
// }
// }