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:
parent
adce1ba835
commit
9b568dac93
2 changed files with 1 additions and 12 deletions
12
gulpfile.js
12
gulpfile.js
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue