-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathwebpack.config.js
More file actions
executable file
·35 lines (35 loc) · 1001 Bytes
/
webpack.config.js
File metadata and controls
executable file
·35 lines (35 loc) · 1001 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
const path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'webclient', 'views', 'App.jsx'),
output: {
path: path.resolve(__dirname, 'webclient', 'assets'),
filename: 'bundle.js',
publicPath: '/assets/'
// publicPath: path.resolve(__dirname, 'webclient', 'assets')
},
module: {
loaders: [{
test: /\.json$/,
loader: 'json'
},
// { test: /\.js$/,loader: 'babel',query: {compact: false}},
// { test: /\.css$/, loader: 'style!css'},
{
loader: 'babel',
test: /\.jsx$/,
query: {
presets: ['es2015', 'react', 'stage-1']
}
}
]
},
resolve: {
extensions: ['', '.js', '.jsx', '/index.js', '/index', '/index.jsx']
},
node: {
console: true,
fs: 'empty',
net: 'empty',
tls: 'empty'
}
};