Skip to content

Commit

Permalink
add TerserPlugin flags to prevent 'unknown provider' AngularJS errors…
Browse files Browse the repository at this point in the history
… from minification
  • Loading branch information
alecmerdler committed May 27, 2020
1 parent 66ddca5 commit 60fc41d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion static/js/directives/ui/build-log-error.js
Expand Up @@ -15,7 +15,7 @@ angular.module('quay').directive('buildLogError', function () {
},
controller: function($scope, $element, Config, DocumentationService) {
$scope.localPullInfo = null;
$sope.DocumentationService = DocumentationService;
$scope.DocumentationService = DocumentationService;

var calculateLocalPullInfo = function(entries) {
var localInfo = {
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Expand Up @@ -67,7 +67,7 @@ if (process.env.NODE_ENV === 'production') {
config.optimization.minimizer = [
new TerserPlugin({
// Disable mangle to prevent AngularJS errors
terserOptions: {mangle: false},
terserOptions: {mangle: false, keep_classnames: true, keep_fnames: true},
sourceMap: true,
}),
];
Expand Down

0 comments on commit 60fc41d

Please sign in to comment.