forked from primefaces/primeng
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
39 lines (35 loc) · 911 Bytes
/
webpack.config.js
File metadata and controls
39 lines (35 loc) · 911 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
var webpack = require("webpack");
module.exports = {
entry: {
'polyfills': './showcase/polyfills.ts',
'vendor': './showcase/vendor.ts',
'application': './showcase/main.ts'
},
output: {
path: __dirname,
filename: "./prod/[name].js",
chunkFilename: "./prod/[id].js"
},
resolve: {
extensions: ['', '.ts', '.js']
},
module: {
loaders: [
{
test: /\.ts$/,
loaders: ['ts-loader']
}
]
},
plugins: [
new webpack.optimize.CommonsChunkPlugin({
name: ['application', 'vendor', 'polyfills']
})/*,
new webpack.optimize.UglifyJsPlugin({
beautify: false,
mangle: {screw_ie8: true, keep_fnames: true},
compress: {screw_ie8: true},
comments: false
})*/
]
};