Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-clean

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-clean

A vite plugin to remove/clean your build folder(s).

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
increased by0.7%
Maintainers
1
Weekly downloads
 
Created
Source

vite-plugin-clean

npm

A vite plugin to remove/clean your build folder(s).

Table of Contents

  1. Installation
  2. Usage
  3. Issues
  4. License

Installation

  npm i --save-dev vite-plugin-clean
  yarn add --dev vite-plugin-clean

Usage

Here's an example vite config illustrating how to use this plugin

vite.config.js

import cleanPlugin from 'vite-plugin-clean';
export default {
  plugins: [cleanPlugin()],
}

Options

You can pass a hash of configuration options to vite-plugin-clean. Allowed values are as follows:

NameTypeDefaultDescription
targetFiles{Array.<string>}['dist']List of directories removed before packing the file

Here's an example vite config illustrating how to use these options

vite.config.js

import cleanPlugin from 'vite-plugin-clean';
export default {
  plugins: [cleanPlugin(
    {
      targetFiles: ['dist', 'test']
    }
  )],
}

Issues

If you encounter some problems during use, please click here Issue Report

License

MIT

Copyright (c) 2022-present flyfox

Keywords

FAQs

Package last updated on 30 Oct 2022

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc