PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / trunk
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! vtrunk
3.8.0 3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 All 112 releases
templately / modules / block-patterns / webpack.config.partial.js

webpack.config.partial.js in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! trunk, at modules/block-patterns/webpack.config.partial.js

22 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 const path = require('path');
2
3 module.exports = {
4 entry: {
5 // Folds into the SPA bundle via react-src/generated/moduleManifest.ts (Constitution
6 // XIII). That bundle is enqueued unconditionally by Admin::enqueue_scripts(), which
7 // runs on the editor screen too — the same reach the retired enqueue_module_assets()
8 // glob gave this module's own bundle, so registerBlockType still runs there.
9 'modules/block-patterns': path.resolve(__dirname, 'assets/js/index.tsx'),
10
11 // The stylesheet must stay a REAL entry (unprefixed key → assets/css/style-block-patterns.css
12 // — @wordpress/scripts prefixes `style-` when the source file is named `style.scss`),
13 // because it is the one piece of this module that does NOT ride the SPA bundle: the
14 // placeholder renders inside the editor's canvas IFRAME, which only sees what
15 // `enqueue_block_assets` puts there. Imported from the JS index instead, it would be
16 // swept into style-templately.css along with every other module's CSS — a file that is
17 // enqueued on the admin page, never inside the canvas, and far too big to inject there.
18 // Same precedent as modules/post-import-feedback's `-style` entry.
19 'block-patterns': path.resolve(__dirname, 'assets/scss/style.scss'),
20 },
21 };
22