-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwebpack.config.js
45 lines (44 loc) · 1.12 KB
/
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
/* eslint-disable */
var path = require('path');
var webpack = require("webpack");
module.exports = {
entry: [
"./src/index.js"
],
output: {
path: __dirname + '/build/',
filename: 'bundle.js',
publicPath: '/build/',
library: "akkad",
libraryTarget: "umd"
},
externals: {
"babylonjs": "babylonjs",
"react": "react",
"react-dom": "react-dom",
"immutable": "immutable",
"react/lib/ReactMultiChild": "react/lib/ReactMultiChild",
"react/lib/ReactUpdates": "react/lib/ReactUpdates"
},
module: {
loaders: [{
test: /\.js$/,
loader: 'babel',
include: path.join(__dirname, 'src'),
query: {
cacheDirectory: true,
presets: ["react", "es2015", "stage-0"]
}
}, {
test: /\.js$/,
loader: "eslint-loader",
exclude: /node_modules/
}]
},
resolve: {
alias: {
// react: path.join(__dirname, 'node_modules', 'react')
},
extensions: ['', '.js']
}
}