Make WordPress Core

Changeset 43687


Ignore:
Timestamp:
10/09/2018 08:30:09 AM (5 years ago)
Author:
atimmer
Message:

Build tools: Combine webpack config files.

This prepares us for building the Gutenberg packages.

See #45065.

Location:
branches/5.0
Files:
1 added
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.0/Gruntfile.js

    r42932 r43687  
    11/* jshint node:true */
    22/* globals Set */
    3 var webpackConfig = require( './webpack.config.prod' );
    4 var webpackDevConfig = require( './webpack.config.dev' );
     3var webpackConfig = require( './webpack.config' );
    54
    65module.exports = function(grunt) {
     
    552551        },
    553552        webpack: {
    554             prod: webpackConfig,
    555             dev: webpackDevConfig
     553            prod: webpackConfig( { environment: 'production' } ),
     554            dev: webpackConfig( { environment: 'development' } )
    556555        },
    557556        concat: {
     
    722721                files: [
    723722                    'Gruntfile.js',
    724                     'webpack-dev.config.js',
    725723                    'webpack.config.js'
    726724                ]
Note: See TracChangeset for help on using the changeset viewer.