forked from solid-contrib/solid-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
42 lines (41 loc) · 813 Bytes
/
webpack.config.js
File metadata and controls
42 lines (41 loc) · 813 Bytes
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
var path = require('path')
module.exports = {
entry: [
'./index.js'
],
output: {
path: path.join(__dirname, '/dist/'),
filename: 'solid-client.min.js',
library: 'SolidClient',
libraryTarget: 'var'
},
resolve: {
modulesDirectories: ['node_modules'],
fallback: path.join(__dirname, 'node_modules')
},
resolveLoader: { fallback: path.join(__dirname, 'node_modules') },
module: {
loaders: [
{
test: /\.js$/,
// exclude: /(node_modules)/,
loader: 'babel',
query: {
presets: ['es2015']
}
},
{
test: /\.json$/,
loader: 'json'
}
]
},
node: {
fs: 'empty'
},
externals: {
xhr2: 'XMLHttpRequest',
xmlhttprequest: 'XMLHttpRequest'
},
devtool: 'source-map'
}