forked from pagarme/woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
18 lines (17 loc) · 729 Bytes
/
webpack.config.js
File metadata and controls
18 lines (17 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const defaultConfig = require('@wordpress/scripts/config/webpack.config');
const DependencyExtractionWebpackPlugin = require('@woocommerce/dependency-extraction-webpack-plugin');
module.exports = {
...defaultConfig,
plugins: [
...defaultConfig.plugins.filter(
(plugin) =>
plugin.constructor.name !== 'DependencyExtractionWebpackPlugin'
),
new DependencyExtractionWebpackPlugin(),
],
entry: {
pix: './assets/javascripts/front/reactCheckout/payments/Pix/index.js',
billet: './assets/javascripts/front/reactCheckout/payments/Billet/index.js',
credit_card: './assets/javascripts/front/reactCheckout/payments/CreditCard/index.js',
},
};