Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Latest commit

 

History

History
37 lines (26 loc) · 955 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 955 Bytes

broccoli-webpack-fast

A Broccoli plugin for webpack with fast rebuilds. It has one limitation (for now) - you can't pass broccoli tree to it.

This module has been created as an alternative to webpack-broccoli which has terrible rebuild times.

Installation

Just use npm:

$ npm install --save-dev broccoli-webpack-fast

Usage

Webpack plugin accepts webpack config as the only argument.

var path = require('path')
var webpackFast = require('broccoli-webpack-fast')

var jsTree = webpackFast({
  entry: './main',
  context: path.resolve('app/js'),
  output: {filename: 'app.js'},
  externals: [{'react': 'React', 'jquery': '$'}],
  devtool: 'eval-source-map'
})

module.exports = jsTree