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
import babel from 'rollup-plugin-babel'; | |
import eslint from 'rollup-plugin-eslint'; | |
import resolve from 'rollup-plugin-node-resolve'; | |
import multiEntry from 'rollup-plugin-multi-entry'; | |
import uglify from 'rollup-plugin-uglify'; | |
import filesize from 'rollup-plugin-filesize'; | |
import commonjs from 'rollup-plugin-commonjs'; | |
import progress from 'rollup-plugin-progress'; | |
let pluginOptions = [ |
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
/*jslint devel: true, browser: true, es5: true */ | |
/*global Promise */ | |
function imgLoad(url) { | |
'use strict'; | |
// Create new promise with the Promise() constructor; | |
// This has as its argument a function with two parameters, resolve and reject | |
return new Promise(function (resolve, reject) { | |
// Standard XHR to load an image | |
var request = new XMLHttpRequest(); |