ini_set(‘display_errors’,’Off’); ini_set(‘error_reporting’, E_ALL );
// Defer Javascript loading function js_async_attr($tag){ # Do not add defer or async attribute to these scripts // $scripts_to_exclude = array(‘script1.js’, ‘script2.js’, ‘script3.js’); // foreach($scripts_to_exclude as $exclude_script){ // if(true == strpos($tag, $exclude_script ) ) // return $tag; // } # Defer or async all remaining scripts not excluded above return str_replace( ‘ src’, ‘ defer=”defer” […]
gulp.task(name, deps, func) was replaced by gulp.task(name, gulp.{series|parallel}(deps, func))
npm init
// npm install npm install gulp gulp-less npm install gulp-sourcemap npm install babelify npm install gulp-minify-css npm install gulp-livereload npm install gulp-babel npm install gulp-concat npm install gulp-uglify npm install gulp-rename npm install gulp-strip-debug npm install babel-preset-es2015 npm install browserify npm install vinyl-source-stream npm install vinyl-buffer @babel/core@^7.0.0