Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-all-base64

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-all-base64

replace images link to base64

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

gulp-all-base64

基础功能

将CSS文件中的图片url转为base64.

gulp.src(*.css)
    .pipe(base64({
        baseDir: 'src'
    }))
    .pipe(gulp.dest('build'));

进阶功能

自己配置正则表达式,将html、js等其他格式文件中的图片转为base64.

gulp.src(*.html)
    .pipe(base64({
        baseDir: 'src',
        fileType: 'html',
        rule: /images\/\w+\-\w+.png/g/
    }))
    .pipe(gulp.dest('build'));

Keywords

FAQs

Package last updated on 11 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc