Changeset 62051
- Timestamp:
- 03/19/2026 01:34:08 AM (2 months ago)
- File:
-
- 1 edited
-
trunk/Gruntfile.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Gruntfile.js
r62021 r62051 42 42 ], 43 43 44 // All built js files, in /src or /build.44 // Built js files, in /src or /build. 45 45 jsFiles = [ 46 46 'wp-admin/js/', 47 47 'wp-includes/js/', 48 'wp-includes/blocks/**/*.js',49 'wp-includes/blocks/**/*.js.map',50 48 ], 51 49 50 // All files copied from the Gutenberg repository. 51 gutenbergFiles = [ 52 'wp-includes/assets', 53 'wp-includes/build', 54 'wp-includes/js/dist', 55 'wp-includes/css/dist', 56 'wp-includes/blocks/**/*', 57 '!wp-includes/blocks/index.php', 58 'wp-includes/icons', 59 ], 60 52 61 // All files built by Webpack, in /src or /build. 62 // Webpack only builds Core-specific media files and development scripts. 63 // Blocks, packages, script modules, and vendors come from the Gutenberg build. 53 64 webpackFiles = [ 54 'wp-includes/assets/*', 55 'wp-includes/css/dist', 56 '!wp-includes/assets/script-loader-packages.min.php', 57 '!wp-includes/assets/script-modules-packages.min.php', 65 'wp-includes/js/media-*.js', 66 'wp-includes/js/media-*.min.js', 67 'wp-includes/js/dist/development', 58 68 ], 59 69 … … 230 240 return setFilePath( WORKING_DIR, file ); 231 241 } ), 242 243 // Clean files built by Webpack. 232 244 'webpack-assets': webpackFiles.map( function( file ) { 233 245 return setFilePath( WORKING_DIR, file ); 234 246 } ), 235 'interactivity-assets': [ 236 WORKING_DIR + 'wp-includes/js/dist/interactivity.asset.php', 237 WORKING_DIR + 'wp-includes/js/dist/interactivity.min.asset.php', 238 ], 247 248 // Clean files built by the tools/gutenberg scripts. 249 gutenberg: gutenbergFiles.map( function( file ) { 250 return setFilePath( WORKING_DIR, file ); 251 }), 239 252 dynamic: { 240 253 dot: true, … … 1807 1820 'webpack:prod', 1808 1821 'webpack:dev', 1809 'clean:interactivity-assets',1810 1822 ] ); 1811 1823
Note: See TracChangeset
for help on using the changeset viewer.