Onga inc

subtitle

webpack

webpack

webpack.config.json sample

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
var path = require('path');

module.exports = {
entry: './main.js',
output: {
path: __dirname,
filename: 'bundle.js',
libraryTarget: "var",
library: "Foo"
},
externals: {
'userAgent': 'userAgent'
},
module: {
loaders: [
{test: /\.json$/, loader: 'json-loader'}
]
},
resolve: {
extensions: ['', '.webpack.js', '.web.js', '.js']
},
node: {
console: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty'
}
};

Onga

A designer, developer and entrepreneur. Spends his time travelling the world with a bag of kites. Likes journalism and publishing platforms.

Comments