0.02
No release in over 3 years
Low commit activity in last 3 years
Guard plugin for Webpack
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0

Runtime

< 3.0
 Project Readme

Guard::Webpack Gem Version

Guard::Webpack spins up a Webpack watcher in a background thread.

Installation

Please ensure you have Guard installed before you continue.

Add the following to your application's Gemfile:

group :development do
  gem 'guard-webpack'
end

And then execute:

$ bundle

Add Guard::Webpack to your Guardfile by running:

$ guard init webpack

Usage

Please refer to the Guard usage doc

Example Guardfile

At present, Guard::Webpack assumes you already have Webpack configured via a webpack.config.js file. Please refer to this Webpack tutorial for help getting that configured.

You can, however, add additional options to your Guardfile, as seen below:

guard :webpack, colors: false, config: './config/webpack/development.config.js'

Options

List of available options

d: false              # development mode turns on debug mode, source maps, and path info, default: false
colors: true             # use colors in displaying webpack output, default: true
progress: true           # display a progress bar for long compiles, default: true
config: 'path_to_config' # define an alternate config file

Notes on Guard 1.x

Guard::Webpack strives to support older versions of Guard (including the Guard::Guard, rather than Guard::Plugin syntax. However, support may be limited. Options, as specified above, are not supported for versions of Guard below 2.0.

Contributing

  1. Fork it ( https://github.com/gisikw/guard-webpack/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request