woocommerce-paypal-payments/modules/ppcp-settings/webpack.config.js

19 lines
439 B
JavaScript
Raw Normal View History

2024-10-18 17:17:07 +02:00
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
const path = require( 'path' );
module.exports = {
...defaultConfig,
cache: false,
2024-10-18 17:17:07 +02:00
...{
entry: {
index: path.resolve( process.cwd(), 'resources/js', 'index.js' ),
switchSettingsUi: path.resolve(
process.cwd(),
'resources/js',
'switchSettingsUi.js'
),
2024-10-18 17:17:07 +02:00
style: path.resolve( process.cwd(), 'resources/css', 'style.scss' ),
},
},
};