1. rollup-plugin-clear
Rollup clean plugin
rollup-plugin-clear
Package: rollup-plugin-clear
Created by: DongShelton
Last modified: Mon, 16 May 2022 04:17:46 GMT
Version: 2.0.7
License: ISC
Downloads: 25,379
Repository: https://github.com/DongShelton/rollup-plugin-clear

Install

npm install rollup-plugin-clear
yarn add rollup-plugin-clear

rollup-plugin-clear

Rollup clear plugin

Installation

 npm install --save-dev rollup-plugin-clear

Usage

 // rollup.config.js
import clear from 'rollup-plugin-clear'

const config = {
    // ...
    plugins: [
        // ...
        clear({
            // required, point out which directories should be clear.
            targets: ['some directory'],
            // optional, whether clear the directores when rollup recompile on --watch mode.
            watch: true, // default: false
        })
    ]
}

export default config;

This plugin can help you to clear the specific directories when the rollup bundle your resource.

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin