Fix dependencies of scripts & styles
This commit is contained in:
parent
db74d56587
commit
19733a3049
|
@ -7,7 +7,7 @@ function woo_dash_register_script() {
|
|||
wp_register_script(
|
||||
WOO_DASH_APP,
|
||||
woo_dash_url( 'dist/index.js' ),
|
||||
[ 'wp-blocks', 'wp-element', 'wp-i18n' ],
|
||||
[ 'wp-components', 'wp-blocks', 'wp-element', 'wp-i18n' ],
|
||||
filemtime( woo_dash_dir_path( 'dist/index.js' ) ),
|
||||
true
|
||||
);
|
||||
|
@ -15,7 +15,7 @@ function woo_dash_register_script() {
|
|||
wp_register_style(
|
||||
WOO_DASH_APP,
|
||||
woo_dash_url( 'dist/css/style.css' ),
|
||||
[ 'wp-components', 'wp-blocks', 'wp-edit-blocks' ],
|
||||
[ 'wp-edit-blocks' ],
|
||||
filemtime( woo_dash_dir_path( 'dist/css/style.css' ) )
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue