Skip to content

Commit

Permalink
chore: formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Sep 20, 2023
1 parent d337122 commit 3a4a1d1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ const blocks = require( './blocks.json' );

defaultConfig.plugins.splice( 1, 1 ); // We need to remove Core's Copy Files plugin.

const blockFiles = Object.keys( blocks ).filter( block => blocks[block].block !== undefined && true !== blocks[block]?.isPro )
const blockFiles = Object.keys( blocks ).filter( block => blocks[ block ].block !== undefined && true !== blocks[ block ]?.isPro )
.map( block => {
return {
source: `src/${blocks[block].block}`,
destination: `build/blocks/${block}/`
source: `src/${ blocks[ block ].block }`,
destination: `build/blocks/${ block }/`
};
});

const blockFolders = Object.keys( blocks ).filter( block => true !== blocks[block]?.isPro ).map( block => `build/blocks/${block}` );
const blockFolders = Object.keys( blocks ).filter( block => true !== blocks[ block ]?.isPro ).map( block => `build/blocks/${ block }` );

module.exports = [
{
Expand Down Expand Up @@ -132,8 +132,7 @@ module.exports = [
sticky: './src/blocks/frontend/sticky/index.ts',
accordion: './src/blocks/frontend/accordion/index.js',
'live-search': './src/blocks/frontend/live-search/index.ts',
'live-search-style': './src/blocks/frontend/live-search/style.scss',
'rank-math-content': './src/blocks/frontend/rank-math-content/index.ts'
'live-search-style': './src/blocks/frontend/live-search/style.scss'
},
output: {
path: path.resolve( __dirname, './build/blocks' ),
Expand Down

0 comments on commit 3a4a1d1

Please sign in to comment.