1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

Removed ng-annotate-webpack-plugin because it doesn't annotate always, and build time increases exponentially.

This commit is contained in:
Gunther Brunner 2015-08-21 17:45:30 +09:00
parent adce1ba835
commit 9b568dac93
2 changed files with 1 additions and 12 deletions

View file

@ -4,7 +4,6 @@ var jshint = require('gulp-jshint')
var jsonlint = require('gulp-jsonlint') var jsonlint = require('gulp-jsonlint')
var standard = require('gulp-standard') var standard = require('gulp-standard')
var webpack = require('webpack') var webpack = require('webpack')
var ngAnnotatePlugin = require('ng-annotate-webpack-plugin')
var webpackConfig = require('./webpack.config').webpack var webpackConfig = require('./webpack.config').webpack
var webpackStatusConfig = require('./res/common/status/webpack.config') var webpackStatusConfig = require('./res/common/status/webpack.config')
var gettext = require('gulp-angular-gettext') var gettext = require('gulp-angular-gettext')
@ -130,12 +129,6 @@ gulp.task("webpack:build", function (callback) {
"NODE_ENV": JSON.stringify('production') "NODE_ENV": JSON.stringify('production')
} }
}) })
//new webpack.optimize.DedupePlugin(),
//new ngAnnotatePlugin({
// add: true,
//})
// TODO: mangle when ngmin works
//new webpack.optimize.UglifyJsPlugin({mangle: false})
) )
myConfig.devtool = false myConfig.devtool = false
@ -164,10 +157,7 @@ gulp.task("webpack:others", function (callback) {
"process.env": { "process.env": {
"NODE_ENV": JSON.stringify('production') "NODE_ENV": JSON.stringify('production')
} }
}), })
new webpack.optimize.DedupePlugin()
// new ngminPlugin(),
// new webpack.optimize.UglifyJsPlugin({mangle: false})
) )
myConfig.devtool = false myConfig.devtool = false

View file

@ -119,7 +119,6 @@
"karma-webpack": "^1.6.0", "karma-webpack": "^1.6.0",
"less": "^2.4.0", "less": "^2.4.0",
"less-loader": "^2.1.0", "less-loader": "^2.1.0",
"ng-annotate-webpack-plugin": "^0.1.2",
"node-libs-browser": "^0.5.2", "node-libs-browser": "^0.5.2",
"node-sass": "^3.2.0", "node-sass": "^3.2.0",
"phantomjs": "^1.9.18", "phantomjs": "^1.9.18",