Skip to content

Commit 0d23e4a

Browse files
idoubFfloriel
authored andcommitted
Update deprecated hook ongenerate to generateBundle
1 parent b1908b3 commit 0d23e4a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/rollup-plugin-purgecss/lib/rollup-plugin-purgecss.es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const pluginPurgecss = function (options = {}) {
3333
map: { mappings: '' }
3434
};
3535
},
36-
ongenerate() {
36+
generateBundle() {
3737
if (!options.insert && (!styles.length || options.output === false)) {
3838
return;
3939
}

packages/rollup-plugin-purgecss/lib/rollup-plugin-purgecss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const pluginPurgecss = function (options = {}) {
3737
map: { mappings: '' }
3838
};
3939
},
40-
ongenerate() {
40+
generateBundle() {
4141
if (!options.insert && (!styles.length || options.output === false)) {
4242
return;
4343
}

packages/rollup-plugin-purgecss/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const pluginPurgecss = function( options = {} ) {
3535
map: { mappings: '' }
3636
}
3737
},
38-
ongenerate() {
38+
generateBundle() {
3939
if (!options.insert && (!styles.length || options.output === false)) {
4040
return
4141
}
@@ -59,4 +59,4 @@ const pluginPurgecss = function( options = {} ) {
5959
}
6060
}
6161

62-
export default pluginPurgecss
62+
export default pluginPurgecss

0 commit comments

Comments
 (0)