File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ node_modules
55composer.lock
66yarn-error.log
77modules /ppcp-button /assets /*
8- modules /ppcp-onboarding /assets /js / *
8+ modules /ppcp-onboarding /assets /*
99modules /ppcp-wc-gateway /assets /*
1010.idea /
1111* .zip
Original file line number Diff line number Diff line change 2020 "devDependencies" : {
2121 "@wordpress/scripts" : " ^12.2.1" ,
2222 "@woocommerce/eslint-plugin" : " 1.1.0" ,
23- "@woocommerce/dependency-extraction-webpack-plugin" : " 1.5.0"
23+ "@woocommerce/dependency-extraction-webpack-plugin" : " 1.5.0" ,
24+ "copy-webpack-plugin" : " 5.1.2"
2425 },
2526 "dependencies" : {
2627 "@woocommerce/components" : " ^6.1.2" ,
File renamed without changes.
Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
2+ const CopyPlugin = require ( 'copy-webpack-plugin' ) ;
23const defaultConfig = require ( '@wordpress/scripts/config/webpack.config' ) ;
34const WooCommerceDependencyExtractionWebpackPlugin = require ( '@woocommerce/dependency-extraction-webpack-plugin' ) ;
45
56module . exports = {
67 ...defaultConfig ,
78 entry : {
8- onboarding : path . resolve ( './resources/js/onboarding.js' ) ,
99 'task-list-fill' : path . resolve (
1010 './resources/js/task-list/task-list-fill.js'
1111 ) ,
12- settings : path . resolve ( './resources/js/settings.js' ) ,
1312 } ,
1413 output : {
1514 path : path . resolve ( __dirname , 'assets/js/' ) ,
@@ -21,5 +20,16 @@ module.exports = {
2120 plugin . constructor . name !== 'DependencyExtractionWebpackPlugin'
2221 ) ,
2322 new WooCommerceDependencyExtractionWebpackPlugin ( ) ,
23+ new CopyPlugin ( [
24+ {
25+ from : path . resolve ( './resources/js' ) ,
26+ to : path . resolve ( __dirname , 'assets/js' ) ,
27+ ignore : [ 'task-list/**/*' ] ,
28+ } ,
29+ {
30+ from : path . resolve ( './resources/css' ) ,
31+ to : path . resolve ( __dirname , 'assets/css' ) ,
32+ } ,
33+ ] ) ,
2434 ] ,
2535} ;
You can’t perform that action at this time.
0 commit comments