gulp-webpack-config
Gulp plugin to run webpack on a stream of config file and wrap the results in a vinyl file
Last updated 3 years ago by kmalakoff .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-webpack-config 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 3.2.0                                ...           latest (3 years ago)

13 Versions

  • 3.2.0                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           6 years ago
  • 0.1.4                                ...           6 years ago
  • 0.1.3                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |