woocommerce-paypal-payments/modules/ppcp-settings/webpack.config.js
2024-11-27 08:02:06 +01:00

18 lines
439 B
JavaScript

const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
const path = require( 'path' );
module.exports = {
...defaultConfig,
cache: false,
...{
entry: {
index: path.resolve( process.cwd(), 'resources/js', 'index.js' ),
switchSettingsUi: path.resolve(
process.cwd(),
'resources/js',
'switchSettingsUi.js'
),
style: path.resolve( process.cwd(), 'resources/css', 'style.scss' ),
},
},
};