forked from plotly/falcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.base.js
50 lines (49 loc) · 1.31 KB
/
webpack.config.base.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
import path from 'path';
export default {
module: {
noParse: [/alasql/],
rules: [{
test: /\.jsx?$/,
use: [{
loader: 'babel-loader'
}],
exclude: /node_modules/
}, {
test: /\.css$/,
use: [{
loader: 'style-loader'
}, {
loader: 'css-loader'
}]
}]
},
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
libraryTarget: 'commonjs2'
},
resolve: {
extensions: ['.js', '.jsx', '.json']
},
plugins: [
],
externals: [
{
'csv-parse': 'commonjs csv-parse',
'data-urls': 'commonjs data-urls',
'dtrace-provider': 'commonjs dtrace-provider',
'font-awesome': 'font-awesome',
'ibm_db': 'commonjs ibm_db',
'mysql': 'mysql',
'oracledb': 'commonjs oracledb',
'pg': 'pg',
'pg-hstore': 'pg-hstore',
'restify': 'commonjs restify',
'sequelize': 'commonjs sequelize',
'source-map-support': 'source-map-support',
'sqlite3': 'sqlite3',
'tedious': 'tedious',
'whatwg-encoding': 'commonjs whatwg-encoding'
}
]
};