Skip to content

Commit 7a2fa10

Browse files
committed
Build tools: Build @WordPress packages with webpack.
We decided to split the media webpack config into it's own file. The main webpack config then combines this file with the packages config. Include vendor scripts by copying them. We copy the minified files if they are available. If they aren't available we minify the original files ourselves. Props omarreiss, herregroen, gziolo, youknowriad, netweb, adamsilverstein. Merges [43719] to trunk. See #45065. git-svn-id: https://develop.svn.wordpress.org/trunk@44112 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f284024 commit 7a2fa10

6 files changed

Lines changed: 4748 additions & 309 deletions

File tree

Gruntfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,8 @@ module.exports = function(grunt) {
704704
},
705705
webpack: {
706706
prod: webpackConfig( { environment: 'production' } ),
707-
dev: webpackConfig( { environment: 'development' } )
707+
dev: webpackConfig( { environment: 'development' } ),
708+
watch: webpackConfig( { environment: 'development', watch: true } )
708709
},
709710
concat: {
710711
tinymce: {

0 commit comments

Comments
 (0)