-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwebpack.config.js
43 lines (38 loc) · 1.02 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
module.exports = {
mode: 'development',
devtool: "source-map",
entry: './src/Main.ts',
output: {
path: require('path').join(__dirname, './dist/'),
filename: 'babylondev.js',
},
externals: [{
'babylonjs': 'BABYLON',
'babylonjs-loaders': 'BABYLON',
'jquery': 'jQuery',
'pako': 'pako',
'react': 'React',
'react-dom': 'ReactDOM',
'@material-ui/core': 'MaterialUI',
'@material-ui/core/styles': 'MaterialUI',
'@material-ui/core/colors': 'MaterialUI.colors'
}],
module: {
rules: [
{ test: /\.tsx?$/, use: [{ loader: 'ts-loader' }], exclude: /node_modules/ },
]
},
resolve: {
extensions: ['.ts', '.tsx']
},
devServer: {
compress: false,
port: 9000,
contentBase: ['./'],
filename: 'babylondev.js',
publicPath: '/dist/',
hot: false,
inline: false,
liveReload: false
}
}