Wordpress/webpack.config.js
Sergey Biryukov caca9cb77b Build Tools: Add non-minified @wordpress scripts to the build output.
Props atimmer.
Merges [43886] to trunk.
See #45156.

git-svn-id: https://develop.svn.wordpress.org/trunk@44245 602fd350-edb4-49c9-b593-d223f7449a82
2018-12-16 23:27:36 +00:00

20 lines
430 B
JavaScript

const mediaConfig = require( './tools/webpack/media' );
const packagesConfig = require( './tools/webpack/packages' );
module.exports = function( env = { environment: "production", watch: false, forceBuildTarget: false } ) {
if ( ! env.watch ) {
env.watch = false;
}
if ( ! env.forceBuildTarget ) {
env.forceBuildTarget = false;
}
const config = [
mediaConfig( env ),
packagesConfig( env ),
];
return config;
};