-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
48 lines (47 loc) · 1.1 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
46
47
48
var webpack = require('webpack')
module.exports = {
'entry': ['babel-polyfill', 'whatwg-fetch', './public/src/js/app'],
'output': {
path: __dirname + '/public/bin',
filename: 'bundle.js'
},
'resolve': {
'extensions': ['', '.webpack.js', '.web.js', '.tag', '.js'],
'modulesDirectories': ['web_modules', 'node_modules']
},
'plugins': [
new webpack.ProvidePlugin({
'oval': 'organic-oval'
})
],
'module': {
'preLoaders': [
{
test: /\.js$/,
exclude: /node_modules/,
loaders: [
// turned off due to a weird syntax error when parsing
//'organic-oval/webpack/oval-loader',
'organic-oval/webpack/oval-control-statements-loader'
]
}
],
'loaders': [
{
test: /\.js$|\.tag$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
plugins: [
['transform-react-jsx', { pragma: 'createElement' }]
],
presets: ['es2015']
}
},
{
test: /\.json$/,
loader: 'json-loader'
}
]
}
}