ngAnnotatePlugin
This commit is contained in:
parent
796ce0c031
commit
ed053b60c0
|
@ -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",
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue
Block a user