This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
sourcemaps = require('gulp-sourcemaps'), | |
uglify = require("gulp-uglify"), | |
jshint = require("gulp-jshint"), | |
rename = require("gulp-rename"), | |
less = require("gulp-less"), | |
LessPluginCleanCSS = require('less-plugin-clean-css'), | |
cleancss = new LessPluginCleanCSS({ advanced: true }), | |
LessPluginAutoPrefix = require('less-plugin-autoprefix'), | |
autoprefixer = new LessPluginAutoPrefix({ browsers: ["last 2 versions"] }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadAsset(path, callback, o) { | |
var selector = getUrlParameter('selector', path).replace(/['"]+/g, '').trim(), | |
async = getUrlParameter('async', path) === 'true', | |
version = getUrlParameter('v', path), | |
assetType = 'js', | |
assetTag = 'script', | |
assetSrc = 'src', | |
needAsset = true; |