Usage
Check out the documentation to see the available options.
Install
npm install -D fly-webpack
Example
You can pass webpack options in with the first argument, including watch
which will greatly decrease compilation times:
{ let webpackConfig = watch: true output: path: 'public' this source"src/main.js" }
Or just pass in your webpack.config.js
:
{ this source"src/main.js" }
If you would like to use a different version of webpack than the one this plugin uses, pass in an optional 2nd argument:
{ this source"src/main.js" }
Pass in 3rd argument if you want to access the stats outputted from webpack when the compilation is done:
{ this source"src/main.js" }
Multiple Entry Points
A common request is how to handle multiple entry points. You can continue to pass in an entry
option in your typical webpack config like so:
{ this source"src/main.js" }
Or you can handle this with passing multiple files to source like so:
{ this source"src/app.js" "test/test.js" }
Release History
- 1.0.9 - Update fly to 0.8.2
- 1.0.8 - Add more tests
- 1.0.6 - Add support for node@0.11
- 1.0.5 - Add tests
- 1.0.3 - Initial release
License
MIT © Andrew Sokolov et al