Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
babili-webpack-plugin
Advanced tools
Readme
npm install babili-webpack-plugin --save-dev
// webpack.config.js
const BabiliPlugin = require("babili-webpack-plugin");
module.exports = {
entry: //...,
output: //...,
plugins: [
new BabiliPlugin(babiliOptions, overrides)
]
}
babiliOptions
are passed on to the babili preset. Check https://github.com/babel/babili/tree/master/packages/babel-preset-babili#options. Default: {}
.
test
: JS file extension regex. Default: /\.js($|\?)/i
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. Set this to override that.parserOpts
: Configure babel with special parser options.babel
: Pass in a custom babel-core instead. require("babel-core")
babili
: Pass in a custom babili preset instead - require("babel-preset-babili")
.
``You can also use babel-loader for webpack and include babili
as a 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? -
node_modules
from being run through the babel-loader, babili optimizations are not applied to the excluded files as it doesn't pass through the minifier.
Boopathi Rajaa |
Juho Vepsäläinen |
Joshua Wiens |
Kees Kluskens |
Sean Larkin |
FAQs
Babili Plugin for Webpack
The npm package babili-webpack-plugin receives a total of 1,700 weekly downloads. As such, babili-webpack-plugin popularity was classified as popular.
We found that babili-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.