babili-webpack-plugin
Advanced tools
Comparing version 0.0.11 to 0.1.0
{ | ||
"name": "babili-webpack-plugin", | ||
"version": "0.0.11", | ||
"version": "0.1.0", | ||
"description": "Babili Plugin for Webpack", | ||
"main": "lib/index.js", | ||
"files": [ | ||
"lib" | ||
], | ||
"scripts": { | ||
@@ -24,16 +27,16 @@ "build": "babel src --out-dir lib", | ||
"dependencies": { | ||
"babel-core": "^6.23.1", | ||
"babel-preset-babili": "^0.0.12", | ||
"webpack-sources": "^0.1.4" | ||
"babel-core": "^6.24.1", | ||
"babel-preset-babili": "^0.1.1", | ||
"webpack-sources": "^0.2.3" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.23.0", | ||
"babel-preset-env": "^1.1.11", | ||
"eslint": "^3.17.0", | ||
"babel-cli": "^6.24.1", | ||
"babel-preset-env": "^1.5.1", | ||
"eslint": "^3.19.0", | ||
"expect": "^1.20.2", | ||
"mocha": "^3.2.0", | ||
"mocha": "^3.4.1", | ||
"rimraf": "^2.6.1", | ||
"source-map": "^0.5.6", | ||
"webpack": "^2.2.1" | ||
"webpack": "^2.6.0" | ||
} | ||
} |
@@ -1,21 +0,25 @@ | ||
# babili-webpack-plugin | ||
[![npm][npm]][npm-url] | ||
[![deps][deps]][deps-url] | ||
[![test][test]][test-url] | ||
[![coverage][cover]][cover-url] | ||
[![quality][quality]][quality-url] | ||
[![chat][chat]][chat-url] | ||
This is a [webpack plugin](https://webpack.js.org/configuration/plugins/) for Babili. | ||
<div align="center"> | ||
<!-- replace with accurate logo e.g from https://worldvectorlogo.com/ --> | ||
<a href="https://github.com/webpack/webpack"> | ||
<img width="200" height="200" vspace="" hspace="25" | ||
src="https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon.svg"> | ||
</a> | ||
<h1>Babili Webpack Plugin</h1> | ||
<p>A Webpack Plugin for <a href="https://github.com/babel/babili">Babili</a> - A babel based minifier<p> | ||
</div> | ||
Babili - A babel based minifier - https://github.com/babel/babili | ||
<h2 align="center">Install</h2> | ||
[![Build Status](https://travis-ci.org/boopathi/babili-webpack-plugin.svg?branch=master)](https://travis-ci.org/boopathi/babili-webpack-plugin) [![npm version](https://badge.fury.io/js/babili-webpack-plugin.svg)](https://badge.fury.io/js/babili-webpack-plugin) [![Greenkeeper badge](https://badges.greenkeeper.io/boopathi/babili-webpack-plugin.svg)](https://greenkeeper.io/) | ||
+ [Install](#install) | ||
+ [Usage](#usage) | ||
+ [Options](#options) | ||
+ [Why?](#why) | ||
## Install | ||
```sh | ||
```bash | ||
npm install babili-webpack-plugin --save-dev | ||
``` | ||
## Usage | ||
<h2 align="center">Usage</h2> | ||
@@ -34,7 +38,7 @@ ```js | ||
## Options | ||
<h2 align="center">Options</h2> | ||
#### babiliOptions | ||
babiliOptions are passed on to the babili preset. Check https://github.com/babel/babili/tree/master/packages/babel-preset-babili#options. `Default: {}`. | ||
`babiliOptions` are passed on to the babili preset. Check https://github.com/babel/babili/tree/master/packages/babel-preset-babili#options. `Default: {}`. | ||
@@ -45,7 +49,8 @@ #### Overrides | ||
+ `comments`: Preserve Comments. Default: `/@preserve|@licen(s|c)e/`. falsy value to remove all comments. Accepts function, object with property test (regex), and values. | ||
+ `sourceMap`: Default: uses [webpackConfig.devtool](https://webpack.github.io/docs/configuration.html#devtool). Set this to override that. | ||
+ `sourceMap`: Default: uses [webpackConfig.devtool](https://webpack.js.org/configuration/devtool/). Set this to override that. | ||
+ `babel`: Pass in a custom babel-core instead. `require("babel-core")` | ||
+ `babili`: Pass in a custom babili preset instead - `require("babel-preset-babili")`. | ||
`` | ||
## Why? | ||
<h2 align="center">Why</h2> | ||
@@ -58,1 +63,58 @@ You can also use [babel-loader](https://github.com/babel/babel-loader) for webpack and include `babili` [as a preset](https://github.com/babel/babili#babel-preset) and should be much faster than using this - as babili will operate on smaller file sizes. But then, why does this plugin exist at all? - | ||
+ A webpack plugin can operate on the entire chunk/bundle output and can optimize the whole bundle and you can see some differences in minified output. But this will be a lot slower as the file size is usually really huge. So there is [another idea](https://github.com/boopathi/babili-webpack-plugin/issues/8) where we can apply some optimizations as a part of the loader and some optimizations in a plugin. | ||
<h2 align="center">Maintainers</h2> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<td align="center"> | ||
<img width="150" height="150" | ||
src="https://avatars2.githubusercontent.com/u/294474?v=3&s=150"> | ||
</br> | ||
<a href="https://github.com/boopathi">Boopathi Rajaa</a> | ||
</td> | ||
<td align="center"> | ||
<img width="150" height="150" | ||
src="https://avatars3.githubusercontent.com/u/166921?v=3&s=150"> | ||
</br> | ||
<a href="https://github.com/bebraw">Juho Vepsäläinen</a> | ||
</td> | ||
<td align="center"> | ||
<img width="150" height="150" | ||
src="https://avatars2.githubusercontent.com/u/8420490?v=3&s=150"> | ||
</br> | ||
<a href="https://github.com/d3viant0ne">Joshua Wiens</a> | ||
</td> | ||
<td align="center"> | ||
<img width="150" height="150" | ||
src="https://avatars3.githubusercontent.com/u/533616?v=3&s=150"> | ||
</br> | ||
<a href="https://github.com/SpaceK33z">Kees Kluskens</a> | ||
</td> | ||
<td align="center"> | ||
<img width="150" height="150" | ||
src="https://avatars3.githubusercontent.com/u/3408176?v=3&s=150"> | ||
</br> | ||
<a href="https://github.com/TheLarkInn">Sean Larkin</a> | ||
</td> | ||
</tr> | ||
<tbody> | ||
</table> | ||
[npm]: https://img.shields.io/npm/v/babili-webpack-plugin.svg | ||
[npm-url]: https://npmjs.com/package/babili-webpack-plugin | ||
[deps]: https://david-dm.org/webpack-contrib/babili-webpack-plugin.svg | ||
[deps-url]: https://david-dm.org/webpack-contrib/babili-webpack-plugin | ||
[chat]: https://img.shields.io/badge/gitter-webpack%2Fwebpack-brightgreen.svg | ||
[chat-url]: https://gitter.im/webpack/webpack | ||
[test]: https://travis-ci.org/webpack-contrib/babili-webpack-plugin.svg?branch=master | ||
[test-url]: https://travis-ci.org/webpack-contrib/babili-webpack-plugin | ||
[cover]: https://codecov.io/gh/webpack-contrib/babili-webpack-plugin/branch/master/graph/badge.svg | ||
[cover-url]: https://codecov.io/gh/webpack-contrib/babili-webpack-plugin | ||
[quality]: https://www.bithound.io/github/webpack-contrib/babili-webpack-plugin/badges/score.svg | ||
[quality-url]: https://www.bithound.io/github/webpack-contrib/babili-webpack-plugin |
118
11705
4
97
+ Addedbabel-helper-evaluate-path@0.1.0(transitive)
+ Addedbabel-helper-flip-expressions@0.1.2(transitive)
+ Addedbabel-helper-is-void-0@0.1.1(transitive)
+ Addedbabel-helper-to-multiple-sequence-expressions@0.1.1(transitive)
+ Addedbabel-plugin-minify-builtins@0.1.3(transitive)
+ Addedbabel-plugin-minify-constant-folding@0.1.3(transitive)
+ Addedbabel-plugin-minify-flip-comparisons@0.1.2(transitive)
+ Addedbabel-plugin-minify-guarded-expressions@0.1.2(transitive)
+ Addedbabel-plugin-minify-infinity@0.1.2(transitive)
+ Addedbabel-plugin-minify-mangle-names@0.1.3(transitive)
+ Addedbabel-plugin-minify-numeric-literals@0.1.1(transitive)
+ Addedbabel-plugin-minify-replace@0.1.2(transitive)
+ Addedbabel-plugin-minify-simplify@0.1.2(transitive)
+ Addedbabel-plugin-minify-type-constructors@0.1.2(transitive)
+ Addedbabel-plugin-transform-inline-consecutive-adds@0.1.2(transitive)
+ Addedbabel-plugin-transform-regexp-constructors@0.1.1(transitive)
+ Addedbabel-plugin-transform-remove-undefined@0.1.2(transitive)
+ Addedbabel-preset-babili@0.1.4(transitive)
+ Addedsource-list-map@1.1.2(transitive)
+ Addedwebpack-sources@0.2.3(transitive)
- Removedbabel-helper-evaluate-path@0.0.3(transitive)
- Removedbabel-helper-flip-expressions@0.0.2(transitive)
- Removedbabel-helper-is-void-0@0.0.1(transitive)
- Removedbabel-helper-mark-eval-scopes@0.0.3(transitive)
- Removedbabel-helper-to-multiple-sequence-expressions@0.0.4(transitive)
- Removedbabel-plugin-minify-builtins@0.0.2(transitive)
- Removedbabel-plugin-minify-constant-folding@0.0.4(transitive)
- Removedbabel-plugin-minify-flip-comparisons@0.0.2(transitive)
- Removedbabel-plugin-minify-guarded-expressions@0.0.4(transitive)
- Removedbabel-plugin-minify-infinity@0.0.3(transitive)
- Removedbabel-plugin-minify-mangle-names@0.0.8(transitive)
- Removedbabel-plugin-minify-numeric-literals@0.0.1(transitive)
- Removedbabel-plugin-minify-replace@0.0.1(transitive)
- Removedbabel-plugin-minify-simplify@0.0.8(transitive)
- Removedbabel-plugin-minify-type-constructors@0.0.4(transitive)
- Removedbabel-plugin-transform-inline-consecutive-adds@0.0.2(transitive)
- Removedbabel-plugin-transform-regexp-constructors@0.0.6(transitive)
- Removedbabel-plugin-transform-remove-undefined@0.0.5(transitive)
- Removedbabel-preset-babili@0.0.12(transitive)
- Removedjsesc@2.5.2(transitive)
- Removedsource-list-map@0.1.8(transitive)
- Removedwebpack-sources@0.1.5(transitive)
Updatedbabel-core@^6.24.1
Updatedbabel-preset-babili@^0.1.1
Updatedwebpack-sources@^0.2.3