Socket
Socket
Sign inDemoInstall

babili-webpack-plugin

Package Overview
Dependencies
84
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.11 to 0.1.0

21

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc