mirror of
git://develop.git.wordpress.org/
synced 2025-02-19 14:14:42 +01:00
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
26 lines
723 B
JavaScript
26 lines
723 B
JavaScript
const blocksConfig = require( './tools/webpack/blocks' );
|
|
const developmentConfig = require( './tools/webpack/development' );
|
|
const mediaConfig = require( './tools/webpack/media' );
|
|
const packagesConfig = require( './tools/webpack/packages' );
|
|
const modulesConfig = require( './tools/webpack/modules' );
|
|
|
|
module.exports = function( env = { environment: "production", watch: false, buildTarget: false } ) {
|
|
if ( ! env.watch ) {
|
|
env.watch = false;
|
|
}
|
|
|
|
if ( ! env.buildTarget ) {
|
|
env.buildTarget = ( env.mode === 'production' ? 'build/' : 'src/' );
|
|
}
|
|
|
|
const config = [
|
|
blocksConfig( env ),
|
|
...developmentConfig( env ),
|
|
mediaConfig( env ),
|
|
packagesConfig( env ),
|
|
modulesConfig( env ),
|
|
];
|
|
|
|
return config;
|
|
};
|