Socket
Socket
Sign inDemoInstall

babili-webpack-plugin

Package Overview
Dependencies
74
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babili-webpack-plugin

Babili Plugin for Webpack


Version published
Weekly downloads
1.8K
decreased by-9.19%
Maintainers
1
Install size
6.03 MB
Created
Weekly downloads
 

Readme

Source

babili-webpack-plugin

This is a webpack plugin for Babili.

Babili - A babel based minifier - https://github.com/babel/babili

NOTE:

This might NOT be the best way to use babili. You can also use it with babel-loader for webpack (include babili in list of presets) and should be faster than using this. Further info - #8.

Build Status npm version

Install

npm install babili-webpack-plugin --save-dev

Usage

// webpack.config.js
const BabiliPlugin = require("babili-webpack-plugin");
module.exports = {
  entry: //...,
  output: //...,
  plugins: [
    new BabiliPlugin(options)
  ]
}

Options

  • test: JS file extension regex. Default: /\.js($|\?)/i
  • comments: Preserve Comments. Default: /@preserve|@license/. falsy value to remove all comments. Accepts function, object with property test (regex), and values.
  • sourceMap: Default: uses webpackConfig.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").

LICENSE

MIT

https://boopathi.mit-license.org

Keywords

FAQs

Last updated on 26 Oct 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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