Files
bedrock/resources/scripts/editor.js
Kelly Mears 69dfbfc65c Replace Laravel Mix with Bud (#2643)
Co-authored-by: QWp6t <hi@qwp6t.me>
Co-authored-by: Ben Word <ben@benword.com>
2021-11-21 23:53:01 -06:00

24 lines
490 B
JavaScript

import '@wordpress/edit-post';
import {registerBlockStyle, unregisterBlockStyle} from '@wordpress/blocks';
import {domReady} from '@scripts/components';
/**
* Customize block styles
*/
domReady(() => {
unregisterBlockStyle('core/button', 'outline');
registerBlockStyle('core/button', {
name: 'outline',
label: 'Outline',
});
});
/**
* Accept module updates
*
* @see https://webpack.js.org/api/hot-module-replacement
*/
import.meta.webpackHot?.accept(console.error);