Skip to content

kebot/gulp-webpack-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Only test with the react-svg-loader package.

gulp.task('svg2react', function () {
  var iconName = argv.icon
  if(!iconName) {
    throw new gulp.PluginError('svg2react', 'iconName not defined')
  }

  gulp.src('icons/icon-' + iconName + '.svg')
    .pipe(webpackLoader('react-svg'))
    .pipe(gulp.dest('./src/icons'))
})

About

run webpack loader as gulp plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published