3.2.0 • Published 7 years ago

gulp-webpack-config v3.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

gulp-webpack-config

Gulp plugin to run webpack on a stream of config file and wrap the results in a vinyl file

gulp = require 'gulp'
webpack = require 'gulp-webpack-config'

HEADER = """
/*
  <%= file.path.split('/').splice(-1)[0] %> <%= pkg.version %>
  Copyright (c) 2013-#{(new Date()).getFullYear()} Your Name
  License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/\n
"""

gulp.task 'build', ->
  gulp.src('config/builds/library/**/*.webpack.config.coffee', {read: false, buffer: false})
    .pipe(webpack())
    .pipe(header(HEADER, {pkg: require('./package.json')}))
    .pipe(gulp.dest('.')

Note

  1. if you do not specify an output filename, it will infer it from the file passed using the following conventions:
  • filename.js -> filename.js
  • filename.config.js -> filename.js
  • filename.webpack.config.js -> filename.js
  • filename.webpack.config.coffee -> filename.js

Options

  1. pure (boolean) - false if you do not want to automatically delete the file after webpacking. Useful if you do not want a pure file-based approach.
3.2.0

7 years ago

3.1.0

7 years ago

3.0.0

7 years ago

2.0.0

7 years ago

0.1.6

9 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago