ngAnnotatePlugin

This commit is contained in:
Synox 2016-09-14 18:42:56 +02:00
parent 796ce0c031
commit ed053b60c0
2 changed files with 5 additions and 1 deletions

View File

@ -37,6 +37,7 @@
"html-loader": "^0.4.3",
"html-webpack-plugin": "^2.15.0",
"json-loader": "^0.5.4",
"ng-annotate-webpack-plugin": "^0.1.3",
"node-sass": "^3.8.0",
"react-hot-loader": "^1.3.0",
"sass-loader": "^4.0.0",

View File

@ -3,6 +3,7 @@ var path = require('path');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var validate = require('webpack-validator');
var merge = require('webpack-merge');
var ngAnnotatePlugin = require('ng-annotate-webpack-plugin');
var TARGET = process.env.npm_lifecycle_event;
@ -20,7 +21,8 @@ const commonConfig = {
new webpack.NoErrorsPlugin(),
new HtmlWebpackPlugin({
template: './index.html'
})
}),
new ngAnnotatePlugin({add: true})
],
module: {
loaders: [
@ -51,6 +53,7 @@ switch (TARGET) {
case 'size':
case 'build':
config = merge(commonConfig, {
devtool: 'source-map',
plugins: [
new webpack.optimize.DedupePlugin(),
new webpack.optimize.UglifyJsPlugin({