JS Minification

Plugin Development
  • Curios, what could I done to have such weird result in minification (lines around 20256):

    // disable the old listener
    $(document)
    	.off('click.data-api.dropdown', _clearMenus)
    	.on('click.data-api.dropdown', function (e) {
    		// call the handler only when not right-click
    		e.button === 2 || _clearMenus();
    	});
    
    }
    

    ;Bud1 untIlocbl  @� @� @� @accountIlocblobF(��accountbwspblob�bplist00�

    
    ]ShowStatusBar[ShowSidebar[ShowPathbar[ShowToolbar[ShowTabView_ContainerShowSidebar\WindowBounds\SidebarWidth_PreviewPaneVisibility  _{{563, 339}, {1036, 640}}�)5AMYp}����������� category.jsIlocblob�(������categoryTools.jsIlocblobR(������chats.jsIlocblob�(������ footer.jsIlocblob^(������groupsIlocblob�(������home.jsIlocblobF���infinitescroll.jsIlocblob��������login.jsIlocblobR���notifications.jsIlocblob��������
    pagination.jsIlocblob^�������
    popular.jsIlocblob�������� recent.jsIlocblobF������ register.jsIlocblob�������reset.jsIlocblob�������
    reset_code.jsIlocblobR������ search.jsIlocblob^������tag.jsIlocblob�������tags.jsIlocblobFx������topicIlocblob�x������topic.jsIlocblobRx������ unread.jsIlocblob�x������users.jsIlocblob^x������ E DSDB `� @� @� @���topicIlocblob�x������topic.jsIlocblobRx������ unread.jsIlocblob�x������users.jsIlocblob^x������
    ;"use strict";
    /* global define, config, templates, app, utils, ajaxify, socket, translator */

    define('forum/category', [
    	'composer',
    	'forum/pagination',
    	'forum/infinitescroll',
    	'share',
    	'navigator',
    	'forum/categoryTools',
    	'sort'
    ], function(composer, pagination, infinitescroll, share, navigator, categoryTools, sort) {
    	var Category = {};
    
  • Same problem again...

    Actions that I have made to 'fix' this problem:

    1. Disable single plugin ./nodebb reset plugin="nodebb-widget-essentials" - No Success
    2. Disable all plugins - No Success
    3. Drop all collections in Mongo, and ./nodebb setup - No Success
    4. Delete nodebb.min.js from public directory - No Success
    5. Delete all public subdirectories that could be found in .gitignore - No Success
    6. Delete public directory and checkout latest from current branch - Success

    Maybe it will give you some insights 😉


Suggested Topics


  • 0 Votes
    7 Posts
    707 Views
  • 0 Votes
    1 Posts
    153 Views
  • 0 Votes
    5 Posts
    2426 Views
  • 0 Votes
    6 Posts
    3412 Views
  • 10 Votes
    29 Posts
    20156 Views