goschevski / gulp-base64-inline Goto Github PK
View Code? Open in Web Editor NEWInline images you want with base64.
Inline images you want with base64.
Hi!
Since last release 1.0.5, I have an issue with opts:
/.../node_modules/gulp-base64-inline/index.js:52
if (opts.prefix !== undefined)
^
TypeError: Cannot read property 'prefix' of undefined
Seems that opts became mandatory since add of opts feature.
For example, first example of readme do not work I think.
It should be:
var gulp = require('gulp');
var base64 = require('gulp-base64-inline');
gulp.task('css', function () {
return gulp.src('css/style.css')
.pipe(base64('../assets/img', {}))
.pipe(gulp.dest('assets/css/'));
}
);
Otherwise, check if props is undefined before trying to find something in it.
Hi Aleksandar,
Neat utility, but please add a correct(-ish) MIME type detection: not all files are images.
E.g. fonts are also commonly inlined, and they need MIME like application/font-woff
, not image/woff
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.