@abide-community/parcel-plugin-clean-out-dir 中文文档教程
@abide-community/parcel-plugin-clean-out-dir
在构建之前清理 Parcel 输出目录
Usage
使用您选择的包管理器安装插件。
yarn add @abide-community/parcel-plugin-clean-out-dir --dev
# or
npm install --save-dev @abide-community/parcel-plugin-clean-out-dir
根据 Parcel 的文档,插件将在初始化期间注册到 Parcel。 现在,Parcel 的 输出目录 将在构建之前进行清理,以确保之前的构建资产不会在构建之间转移。
@abide-community/parcel-plugin-clean-out-dir
Cleans the Parcel output directory before building
Usage
Install the plugin with your package manager of choice.
yarn add @abide-community/parcel-plugin-clean-out-dir --dev
# or
npm install --save-dev @abide-community/parcel-plugin-clean-out-dir
Per Parcel's documentation, the plugin will be registered with Parcel during initialization. Now, Parcel's output directory will be cleaned before a build to ensure that previous build assets are not carried over between builds.