mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-29 12:03:44 +03:00
chore: uncomment uglify + fix lint
This commit is contained in:
parent
c41f56d33c
commit
9c4bc5944f
|
@ -49,18 +49,18 @@ const config = webpackMerge(commonConfig({
|
||||||
minimize: true,
|
minimize: true,
|
||||||
debug: false
|
debug: false
|
||||||
}),
|
}),
|
||||||
// new webpack.optimize.UglifyJsPlugin({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
// compress: {
|
compress: {
|
||||||
// warnings: false,
|
warnings: false,
|
||||||
// screw_ie8: true,
|
screw_ie8: true,
|
||||||
// negate_iife: false // for lazy v8
|
negate_iife: false // for lazy v8
|
||||||
// },
|
},
|
||||||
// mangle: { screw_ie8 : true },
|
mangle: { screw_ie8 : true },
|
||||||
// output: {
|
output: {
|
||||||
// comments: false
|
comments: false
|
||||||
// },
|
},
|
||||||
// sourceMap: true
|
sourceMap: true
|
||||||
// }),
|
}),
|
||||||
new webpack.BannerPlugin(BANNER)
|
new webpack.BannerPlugin(BANNER)
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
|
@ -50,14 +50,14 @@ export class MenuService {
|
||||||
items: MenuItem[];
|
items: MenuItem[];
|
||||||
activeIdx: number = -1;
|
activeIdx: number = -1;
|
||||||
|
|
||||||
|
public domRoot: Document | Element = document;
|
||||||
|
|
||||||
private _flatItems: MenuItem[];
|
private _flatItems: MenuItem[];
|
||||||
private _hashSubscription: Subscription;
|
private _hashSubscription: Subscription;
|
||||||
private _scrollSubscription: Subscription;
|
private _scrollSubscription: Subscription;
|
||||||
private _progressSubscription: Subscription;
|
private _progressSubscription: Subscription;
|
||||||
private _tagsWithOperations: any;
|
private _tagsWithOperations: any;
|
||||||
|
|
||||||
public domRoot: Document | Element = document;
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private hash:Hash,
|
private hash:Hash,
|
||||||
private tasks: LazyTasksService,
|
private tasks: LazyTasksService,
|
||||||
|
@ -70,7 +70,7 @@ export class MenuService {
|
||||||
this.specMgr.spec.subscribe(spec => {
|
this.specMgr.spec.subscribe(spec => {
|
||||||
if (!spec) return;
|
if (!spec) return;
|
||||||
this.buildMenu();
|
this.buildMenu();
|
||||||
})
|
});
|
||||||
|
|
||||||
this._scrollSubscription = scrollService.scroll.subscribe((evt) => {
|
this._scrollSubscription = scrollService.scroll.subscribe((evt) => {
|
||||||
this.onScroll(evt.isScrolledDown);
|
this.onScroll(evt.isScrolledDown);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user