Sha256: 93d8a7af0e1dcf5af4e07b49a028ddaafd26da976775c247c8a109f0c594e0b0
Contents?: true
Size: 917 Bytes
Versions: 5
Compression:
Stored size: 917 Bytes
Contents
var config = require('../config') /** * Enable debug utilities. The enableDebug() function and * all _.log() & _.warn() calls will be dropped in the * minified production build. */ enableDebug() function enableDebug () { var hasConsole = typeof console !== 'undefined' /** * Log a message. * * @param {String} msg */ exports.log = function (msg) { if (hasConsole && config.debug) { console.log('[Vue info]: ' + msg) } } /** * We've got a problem here. * * @param {String} msg */ exports.warn = function (msg) { if (hasConsole && !config.silent) { console.warn('[Vue warn]: ' + msg) if (config.debug && console.trace) { console.trace() } } } /** * Assert asset exists */ exports.assertAsset = function (val, type, id) { if (!val) { exports.warn('Failed to resolve ' + type + ': ' + id) } } }
Version data entries
5 entries across 5 versions & 1 rubygems