mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 04:58:28 +08:00
24 lines
586 B
JavaScript
24 lines
586 B
JavaScript
const path = require('path');
|
|
const isProduction = process.env.NODE_ENV === 'production';
|
|
|
|
debugger
|
|
|
|
module.exports = {
|
|
devtool: 'sourcemap',
|
|
mode: isProduction ? 'production' : 'development',
|
|
target: 'web',
|
|
entry: {
|
|
'gateway-settings': path.resolve('./resources/js/gateway-settings.js'),
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'assets/'),
|
|
filename: 'js/[name].js',
|
|
},
|
|
module: {
|
|
rules: [{
|
|
test: /\.js?$/,
|
|
exclude: /node_modules/,
|
|
loader: 'babel-loader',
|
|
}]
|
|
}
|
|
};
|