Skip to content

Commit

Permalink
fix(webpack): remove block mention
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Jan 19, 2023
1 parent 948c68f commit 46fe99a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions generator/miscellaneous.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ function strip_packagejson() {
unset( $package[ 'devDependencies' ][ $line ] );
}
}

$webpack = file_get_contents( getcwd() . DIRECTORY_SEPARATOR . WPBP_PLUGIN_SLUG . '/webpack.config.js' );
$webpack = str_replace( "'plugin-block', ", '', $webpack );
file_put_contents( getcwd() . DIRECTORY_SEPARATOR . WPBP_PLUGIN_SLUG . '/webpack.config.js', $webpack );
}

file_put_contents( getcwd() . DIRECTORY_SEPARATOR . WPBP_PLUGIN_SLUG . '/package.json', json_encode( $package, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) );
Expand Down

0 comments on commit 46fe99a

Please sign in to comment.