2021-07-28 10:05:01 +00:00
|
|
|
const blocksConfig = require( './tools/webpack/blocks' );
|
2022-04-11 16:08:12 +00:00
|
|
|
const developmentConfig = require( './tools/webpack/development' );
|
2018-12-13 15:25:37 +00:00
|
|
|
const mediaConfig = require( './tools/webpack/media' );
|
|
|
|
const packagesConfig = require( './tools/webpack/packages' );
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
git-svn-id: https://develop.svn.wordpress.org/trunk@57377 602fd350-edb4-49c9-b593-d223f7449a82
2024-01-29 21:04:18 +00:00
|
|
|
const modulesConfig = require( './tools/webpack/modules' );
|
2018-12-13 11:04:35 +00:00
|
|
|
|
2018-12-24 13:28:22 +00:00
|
|
|
module.exports = function( env = { environment: "production", watch: false, buildTarget: false } ) {
|
2018-12-13 15:25:37 +00:00
|
|
|
if ( ! env.watch ) {
|
|
|
|
env.watch = false;
|
|
|
|
}
|
2017-10-04 21:00:15 +00:00
|
|
|
|
2018-12-24 13:28:22 +00:00
|
|
|
if ( ! env.buildTarget ) {
|
|
|
|
env.buildTarget = ( env.mode === 'production' ? 'build/' : 'src/' );
|
2018-12-16 23:27:36 +00:00
|
|
|
}
|
|
|
|
|
2018-12-13 15:25:37 +00:00
|
|
|
const config = [
|
2021-07-28 10:05:01 +00:00
|
|
|
blocksConfig( env ),
|
2022-04-11 16:08:12 +00:00
|
|
|
...developmentConfig( env ),
|
2018-12-13 15:25:37 +00:00
|
|
|
mediaConfig( env ),
|
|
|
|
packagesConfig( env ),
|
Editor: Update the WordPress packages to the Gutenberg 16.7 RC2 version.
This patch, somewhat small brings a lot to WordPress.
This includes features like:
- DataViews.
- Customization tools like box shadow, background size and repeat.
- UI improvements in the site editor.
- Preferences sharing between the post and site editors.
- Unified panels and editors between post and site editors.
- Improved template mode in the post editor.
- Iterations to multiple interactive blocks.
- Preparing the blocks and UI for pattern overrides.
- and a lot more.
Props luisherranz, gziolo, isabel_brison, costdev, jonsurrell, peterwilsoncc, get_dave, antonvlasenko, desrosj.
See #60315.
git-svn-id: https://develop.svn.wordpress.org/trunk@57377 602fd350-edb4-49c9-b593-d223f7449a82
2024-01-29 21:04:18 +00:00
|
|
|
modulesConfig( env ),
|
2018-12-13 15:25:37 +00:00
|
|
|
];
|
2018-12-11 16:38:21 +00:00
|
|
|
|
2018-12-13 15:25:37 +00:00
|
|
|
return config;
|
2018-12-11 16:38:21 +00:00
|
|
|
};
|