forked from markedwardsims/death-match-ko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
30 lines (29 loc) · 900 Bytes
/
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
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: {
main: './app/main.js'
},
output: {
path: './build',
filename: '[name].built.js'
},
resolve: {
modulesDirectories: [
'app',
'node_modules'
],
alias: {
'socket.io': path.resolve( 'node_modules', 'socket.io-client', 'socket.io.js' ),
'mapping': path.resolve( 'node_modules', 'knockout.mapping', 'knockout.mapping.js' ),
'lodash': path.resolve( 'node_modules', 'lodash-amd' ),
'app/config': path.resolve( 'app', 'config.js' ),
'domready': path.resolve( 'node_modules', 'domready', 'ready.js' ),
'app/components': path.resolve( 'app', 'components' )
}
},
devtool: 'source-map',
plugins: [
new webpack.optimize.UglifyJsPlugin()
]
};