File tree 3 files changed +1
-12
lines changed
3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change 47
47
"@wordpress/primitives" : " ^4.7.0" ,
48
48
"@wordpress/scripts" : " ^29.0.0" ,
49
49
"classnames" : " ^2.5.1" ,
50
- "copy-webpack-plugin" : " ^12.0.2" ,
51
50
"globby" : " ^14.0.2" ,
52
51
"gulp" : " ^5.0.0" ,
53
52
"gulp-freemius-deploy" : " ^1.0.11" ,
Original file line number Diff line number Diff line change @@ -90,6 +90,5 @@ This project extends the default `@wordpress/scripts/config/webpack.config` to p
90
90
` frontend ` scripts based on there include path.
91
91
3 . Configure the ` @wordpress/dependency-extraction-webpack-plugin ` to handle the ` editor ` and ` frontend ` scripts.
92
92
4 . Add ` raw-loader ` to the default ` module.rules ` and configure it to import ` .html ` files.
93
- 5 . Add ` copy-webpack-plugin ` to the default ` plugins ` and configure it to copy the ` src/media ` folder to the ` assets ` folder.
94
93
95
94
** _ Note:_ ** Check the comments in the file for more detailed explanations of the above.
Original file line number Diff line number Diff line change 1
1
2
2
const defaultConfig = require ( '@wordpress/scripts/config/webpack.config' ) ;
3
3
const DependencyExtractionWebpackPlugin = require ( '@wordpress/dependency-extraction-webpack-plugin' ) ;
4
- const CopyPlugin = require ( 'copy-webpack-plugin' ) ;
5
4
6
5
/**
7
6
* Modify the default WordPress config entry points to include our internal packages '#editor' and '#frontend' that are
@@ -109,14 +108,6 @@ module.exports = {
109
108
// CopyPlugin to allow simple copying of files within the media folder.
110
109
plugins : [
111
110
...defaultConfig . plugins . filter ( plugin => plugin . constructor . name !== 'DependencyExtractionWebpackPlugin' ) ,
112
- ! process . env . WP_NO_EXTERNALS && new DependencyExtractionWebpackPlugin ( dependencyExtractionWebpackPluginOptions ) ,
113
- new CopyPlugin ( {
114
- patterns : [ {
115
- context : './src/media' ,
116
- from : '*.*' ,
117
- to : 'media/[name][ext]' ,
118
- noErrorOnMissing : true
119
- } ]
120
- } )
111
+ ! process . env . WP_NO_EXTERNALS && new DependencyExtractionWebpackPlugin ( dependencyExtractionWebpackPluginOptions )
121
112
] . filter ( Boolean )
122
113
} ;
You can’t perform that action at this time.
0 commit comments