Add Angular2
This commit is contained in:
29
webpack.config.js
Normal file
29
webpack.config.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// var webpack = require("webpack");
|
||||
|
||||
module.exports = {
|
||||
entry: ['reflect-metadata', 'zone.js', 'es6-shim', "./src/boot.ts"],
|
||||
output: {
|
||||
path: __dirname + "/bundle",
|
||||
filename: "uhk.js"
|
||||
},
|
||||
devtool: 'source-map',
|
||||
resolve: {
|
||||
extensions: ['', '.webpack.js', '.web.js', '.ts', '.js'],
|
||||
alias: {
|
||||
|
||||
},
|
||||
modulesDirectories: [
|
||||
'node_modules',
|
||||
'bower_components'
|
||||
]
|
||||
},
|
||||
module: {
|
||||
loaders: [
|
||||
{ test: /\.ts$/, loader: 'ts-loader', exclude: /node_modules/ }
|
||||
]
|
||||
}/*,
|
||||
plugins: [
|
||||
new webpack.optimize.UglifyJsPlugin({ minimize: true })
|
||||
]*/
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user