@@ -3,7 +3,6 @@ import autoprefixer from "autoprefixer";
3
3
import cssnano from "cssnano" ;
4
4
import precss from "precss" ;
5
5
import { OutputOptions } from "rollup" ;
6
- import cleaner from "rollup-plugin-cleaner" ;
7
6
import commonjs from "rollup-plugin-commonjs" ;
8
7
import json from "rollup-plugin-json" ;
9
8
import license from "rollup-plugin-license" ;
@@ -13,6 +12,7 @@ import serve from "rollup-plugin-serve";
13
12
import { terser } from "rollup-plugin-terser" ;
14
13
import visualizer from "rollup-plugin-visualizer" ;
15
14
import { budget , IRollupPluginBudgetConfig } from "./rollup-plugins/budget/rollup-plugin-budget" ;
15
+ import { clean , IRollupPluginCleanConfig } from "./rollup-plugins/clean/rollup-plugin-clean" ;
16
16
import { compress , IRollupPluginCompressConfig } from "./rollup-plugins/compress/rollup-plugin-compress" ;
17
17
import { copy , IRollupPluginCopyConfig } from "./rollup-plugins/copy/rollup-plugin-copy" ;
18
18
import { htmlTemplate , IRollupPluginHtmlTemplateConfig } from "./rollup-plugins/html-template/rollup-plugin-html-template" ;
@@ -35,7 +35,7 @@ export interface IDefaultPlugins extends IDefaultResolvePlugins{
35
35
copyConfig : Partial < IRollupPluginCopyConfig > ;
36
36
htmlTemplateConfig : Partial < IRollupPluginHtmlTemplateConfig > ;
37
37
replaceConfig : Partial < IRollupPluginReplaceConfig > ;
38
- cleanerConfig : any ;
38
+ cleanConfig : Partial < IRollupPluginCleanConfig >
39
39
progressConfig : any ;
40
40
}
41
41
@@ -154,7 +154,7 @@ export const defaultResolvePlugins = ({importStylesConfig, jsonConfig, resolveCo
154
154
155
155
/**
156
156
* Default configuration for the plugins that runs every time the bundle is created.
157
- * @param cleanerConfig
157
+ * @param cleanConfig
158
158
* @param copyConfig
159
159
* @param importStylesConfig
160
160
* @param jsonConfig
@@ -165,16 +165,16 @@ export const defaultResolvePlugins = ({importStylesConfig, jsonConfig, resolveCo
165
165
* @param commonjsConfig
166
166
* @param replaceConfig
167
167
*/
168
- export const defaultPlugins = ( { cleanerConfig , copyConfig, importStylesConfig, jsonConfig, htmlTemplateConfig, resolveConfig, progressConfig, tsConfig, commonjsConfig, replaceConfig} : Partial < IDefaultPlugins > = { } ) => [
168
+ export const defaultPlugins = ( { cleanConfig , copyConfig, importStylesConfig, jsonConfig, htmlTemplateConfig, resolveConfig, progressConfig, tsConfig, commonjsConfig, replaceConfig} : Partial < IDefaultPlugins > = { } ) => [
169
169
170
170
// Shows a progress indicator while building
171
171
progress ( {
172
172
...configOrDefault ( progressConfig )
173
173
} ) ,
174
174
175
175
// Cleans the dist folder to get rid of files from the previous build
176
- cleaner ( {
177
- ...configOrDefault ( cleanerConfig )
176
+ clean ( {
177
+ ...configOrDefault ( cleanConfig )
178
178
} ) ,
179
179
180
180
// Teach rollup how to resolve imports
0 commit comments