Preparing your site for Production release (debug mode= false)

69 views
Skip to first unread message

Balvvant Singh Bist

unread,
Oct 26, 2014, 8:38:28 AM10/26/14
to duran...@googlegroups.com
Hi All,
While preparing for release whenever i change the debug mode in config file to false, I donot see my site output. I get the default output on browser. I think the problem is when i run my program with debug= false the application start referring to main.js.min. Due to some reason this file is never update with my latest code. It still has the same old default code. 

1. Am I missing something here?
2. Why the wayland config stuff is not working?
3. Does anyone have step by step instructions to fix this?


Thanks in advance for your reply.

Balvvant Singh Bist

unread,
Oct 27, 2014, 1:54:37 PM10/27/14
to duran...@googlegroups.com
For reference currently my weyland-config file looks like this:

exports.config = function (weyland) {
    weyland.build('main')
        .task.jshint({
            include: 'App/**/*.js'
        })
        .task.uglifyjs({
            include: ['App/**/*.js', 'Scripts/durandal/**/*.js']
        })
        .task.rjs({
            include: ['App/**/*.{js,html}', 'Scripts/durandal/**/*.js'],
            loaderPluginExtensionMaps: {
                '.html': 'text'
            },
            rjs: {
                name: '../Scripts/almond-custom', //to deploy with require.js, use the build's name here instead
                insertRequire: ['main'], //not needed for require
                baseUrl: 'App',
                wrap: true, //not needed for require
                paths: {
                    'text': '../Scripts/text',
                    'durandal': '../Scripts/durandal',
                    //'durandal': '../assets/javascripts/durandal',
                    'plugins': '../Scripts/durandal/plugins',
                    'transitions': '../Scripts/durandal/transitions',
                    //'transitions': '../assets/javascripts/durandal/transitions',
                    'knockout': '../Scripts/knockout-2.3.0',
                    'knockout.validation': '../Scripts/knockout.validation',
                    'bootstrap': '../Scripts/bootstrap',
                    'jquery': '../Scripts/jquery-1.10.2',
                    'jquery.utilities': '../Scripts/jquery.utilities',
                    'toastr': '../Scripts/toastr'
                    
                    
                },
                shim: {
                    'bootstrap': {
                        deps: ['jquery'],
                        exports: 'jQuery'
                    },
                    'knockout.validation': {
                        deps: ['knockout']
                    },
                    'jquery.utilities': {
                        dep: ['jquery']
                    }
                },
                inlineText: true,
                optimize: 'none',
                pragmas: {
                    build: true
                },
                stubModules: ['text'],
                keepBuildDir: true,
                out: 'App/main-built.js'
            }
        });
};

Balvvant Singh Bist

unread,
Oct 30, 2014, 1:42:10 PM10/30/14
to duran...@googlegroups.com
Any answer, please?


On Sunday, October 26, 2014 6:08:28 PM UTC+5:30, Balvvant Singh Bist wrote:

Balvvant Singh Bist

unread,
Feb 23, 2015, 1:48:48 PM2/23/15
to duran...@googlegroups.com
Guy anyone. Iam still stuck into this.
Reply all
Reply to author
Forward
0 new messages