🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

webpack-remove-empty-scripts

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-remove-empty-scripts

Webpack plugin removes empty JavaScript files generated when using styles.

1.1.1
latest
Source
npm
Version published
Weekly downloads
183K
-8.78%
Maintainers
1
Weekly downloads
 
Created

What is webpack-remove-empty-scripts?

The webpack-remove-empty-scripts package is a plugin for Webpack that helps to remove empty scripts generated during the build process. This can be particularly useful when using tools like MiniCssExtractPlugin, which can sometimes generate empty JavaScript files when only CSS is being extracted.

What are webpack-remove-empty-scripts's main functionalities?

Remove Empty Scripts

This feature allows you to remove empty JavaScript files that are generated during the Webpack build process. By including the RemoveEmptyScriptsPlugin in your Webpack configuration, you can ensure that any empty scripts are automatically removed, keeping your build output clean.

const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts');

module.exports = {
  plugins: [
    new RemoveEmptyScriptsPlugin(),
  ],
};

Other packages similar to webpack-remove-empty-scripts

Keywords

webpack

FAQs

Package last updated on 26 May 2025

Did you know?

Socket

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