Moved back to ng1
Change-Id: I43b284e3b3cb3ac19d43c088de988c89a7ea8807
diff --git a/conf/webpack-dist.conf.js b/conf/webpack-dist.conf.js
index 3ba4a8a..33f0acb 100644
--- a/conf/webpack-dist.conf.js
+++ b/conf/webpack-dist.conf.js
@@ -4,6 +4,7 @@
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
+const pkg = require('../package.json');
const autoprefixer = require('autoprefixer');
module.exports = {
@@ -26,6 +27,7 @@
test: /\.ts$/,
exclude: /node_modules/,
loaders: [
+ 'ng-annotate',
'ts'
]
},
@@ -43,13 +45,6 @@
new HtmlWebpackPlugin({
template: conf.path.src('index.html')
}),
- new webpack.ContextReplacementPlugin(
- /angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
- conf.paths.src
- ),
- new webpack.DefinePlugin({
- 'process.env.NODE_ENV': '"production"'
- }),
new webpack.optimize.UglifyJsPlugin({
compress: {unused: true, dead_code: true, warnings: false} // eslint-disable-line camelcase
}),
@@ -70,7 +65,10 @@
'.ts'
]
},
- entry: `./${conf.path.src('index')}`,
+ entry: {
+ app: `./${conf.path.src('index')}`,
+ vendor: Object.keys(pkg.dependencies)
+ },
ts: {
configFileName: 'tsconfig.json'
},