Fixed Blocks Asset Constant Path
This commit is contained in:
parent
25d42b0c05
commit
cf357e809b
|
@ -31,7 +31,7 @@ export const blocksConfig = getSetting( 'wcBlocksConfig', {
|
|||
} ) as WcBlocksConfig;
|
||||
|
||||
export const WC_BLOCKS_IMAGE_URL = blocksConfig.pluginUrl + 'images/';
|
||||
export const WC_BLOCKS_BUILD_URL = blocksConfig.pluginUrl + 'build/';
|
||||
export const WC_BLOCKS_BUILD_URL = blocksConfig.pluginUrl + 'assets/client/blocks/';
|
||||
export const WC_BLOCKS_PHASE = blocksConfig.buildPhase;
|
||||
export const SHOP_URL = STORE_PAGES.shop?.permalink;
|
||||
export const CHECKOUT_PAGE_ID = STORE_PAGES.checkout?.id;
|
||||
|
|
|
@ -103,7 +103,7 @@ class Api {
|
|||
* Get the path to a block's metadata
|
||||
*
|
||||
* @param string $block_name The block to get metadata for.
|
||||
* @param string $path Optional. The path to the metadata file inside the 'build' folder.
|
||||
* @param string $path Optional. The path to the metadata file inside the 'assets/client/blocks' folder.
|
||||
*
|
||||
* @return string|boolean False if metadata file is not found for the block.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue