File tree Expand file tree Collapse file tree 7 files changed +12
-9
lines changed
Expand file tree Collapse file tree 7 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " flowbite-react " : patch
3+ ---
4+
5+ remove redundant ` build ` CLI command invocation
Original file line number Diff line number Diff line change 109109 },
110110 "packages/ui": {
111111 "name": "flowbite-react",
112- "version": "0.12.10 ",
112+ "version": "0.12.11 ",
113113 "bin": {
114114 "flowbite-react": "./dist/cli/bin.js",
115115 },
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ export default {
77 name : pluginName ,
88 setup ( { onStart, config } ) {
99 onStart ( async ( ) => {
10- await build ( ) ;
11-
1210 // assume production build when `config.minify = true`
13- if ( ! config . minify ) {
11+ if ( config . minify ) {
12+ await build ( ) ;
13+ } else {
1414 await dev ( ) ;
1515 }
1616 } ) ;
Original file line number Diff line number Diff line change @@ -11,10 +11,11 @@ export default (): Plugin => ({
1111 pluginBuild . onStart ( async ( ) => {
1212 if ( ! registered ) {
1313 registered = true ;
14- await build ( ) ;
1514
1615 // assume production build when `initialOptions.minify = true`
17- if ( ! pluginBuild . initialOptions . minify ) {
16+ if ( pluginBuild . initialOptions . minify ) {
17+ await build ( ) ;
18+ } else {
1819 dev ( ) ;
1920 }
2021 }
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ export default (): CliPlugin<AppTools> => ({
1111 await build ( ) ;
1212 } ,
1313 async beforeDev ( ) {
14- await build ( ) ;
1514 await dev ( ) ;
1615 } ,
1716 } ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ export default new Reporter({
88 await build ( ) ;
99 }
1010 if ( event . type === "watchStart" ) {
11- await build ( ) ;
1211 await dev ( ) ;
1312 }
1413 } ,
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ export default (): RspackPluginInstance => ({
1616 await build ( ) ;
1717 } else if ( isDev && ! devServerStarted ) {
1818 devServerStarted = true ;
19- await build ( ) ;
2019 await dev ( ) ;
2120 }
2221 } ) ;
You can’t perform that action at this time.
0 commit comments