Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ function extensionModules( mode, target ) {
filename: path.join( 'app.js' ),
},
plugins: [
new EmitSubjectsSchemaPlugin(),
new CopyPlugin( {
patterns: [
{
Expand All @@ -154,11 +155,20 @@ function extensionModules( mode, target ) {
},
],
} ),
new EmitSubjectsSchemaPlugin(),
// Create plugin.zip.
new FileManagerPlugin( {
events: {
onEnd: {
copy: [
{
source: WP_PLUGIN_SCHEMA_PATH,
destination: path.join(
targetPath,
'plugin',
SCHEMA_OUTPUT_NAME
),
},
],
archive: [
{
source: path.join( targetPath, 'plugin' ),
Expand Down