⬆️ bump bud to v5.3.2 (#2976)
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = (app) =>
|
||||
* These files should be processed as part of the build
|
||||
* even if they are not explicitly imported in application assets.
|
||||
*/
|
||||
.assets([app.path('src', 'images')])
|
||||
.assets(['images'])
|
||||
|
||||
/**
|
||||
* These files will trigger a full page reload
|
||||
|
||||
14
package.json
14
package.json
@@ -25,12 +25,12 @@
|
||||
"translate:js": "wp i18n make-json ./resources/lang --pretty-print"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@roots/bud": "^5.2.0",
|
||||
"@roots/bud-eslint": "^5.2.0",
|
||||
"@roots/bud-postcss": "^5.2.0",
|
||||
"@roots/bud-prettier": "^5.2.0",
|
||||
"@roots/bud-stylelint": "^5.2.0",
|
||||
"@roots/bud-tailwindcss": "^5.2.0",
|
||||
"@roots/sage": "^5.2.0"
|
||||
"@roots/bud": "5.3.2",
|
||||
"@roots/bud-eslint": "5.3.2",
|
||||
"@roots/bud-postcss": "5.3.2",
|
||||
"@roots/bud-prettier": "5.3.2",
|
||||
"@roots/bud-stylelint": "5.3.2",
|
||||
"@roots/bud-tailwindcss": "5.3.2",
|
||||
"@roots/sage": "5.3.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {domReady} from '@scripts/components';
|
||||
import {domReady} from '@roots/sage/client';
|
||||
|
||||
/**
|
||||
* Run the application when the DOM is ready.
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* Calls a supplied function once
|
||||
* document has loaded.
|
||||
*
|
||||
* @param {CallableFunction} onReady
|
||||
* @return {void}
|
||||
*/
|
||||
export const domReady = (onReady) => {
|
||||
window.requestAnimationFrame(function check() {
|
||||
document.body ? onReady() : window.requestAnimationFrame(check);
|
||||
});
|
||||
};
|
||||
@@ -1,6 +1,6 @@
|
||||
import {registerBlockStyle, unregisterBlockStyle} from '@wordpress/blocks';
|
||||
|
||||
import {domReady} from '@scripts/components';
|
||||
import {domReady} from '@roots/sage/client';
|
||||
|
||||
/**
|
||||
* Customize block styles
|
||||
|
||||
Reference in New Issue
Block a user