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

23 lines
616 B
JavaScript
Raw Normal View History

2021-09-22 10:05:00 +02:00
const path = require('path');
const isProduction = process.env.NODE_ENV === 'production';
module.exports = {
devtool: isProduction ? 'source-map' : 'eval-source-map',
2021-09-22 10:05:00 +02:00
mode: isProduction ? 'production' : 'development',
target: 'web',
entry: {
'myaccount-payments': path.resolve('./resources/js/myaccount-payments.js'),
2021-09-22 10:05:00 +02:00
},
output: {
path: path.resolve(__dirname, 'assets/'),
filename: 'js/[name].js',
},
module: {
rules: [{
test: /\.js?$/,
exclude: /node_modules/,
loader: 'babel-loader',
}]
2021-09-22 10:05:00 +02:00
}
};