const path = require('path');
const glob = require('glob');
module.exports = {
	entry: {
		settings: './admin/assets/js/pages/pixelio_cart_abandon_recovery_more_admin_settings.js',
		email: './admin/assets/js/pages/pixelio_cart_abandon_recovery_more_admin_email.js',
		first: './admin/assets/js/pages/pixelio_cart_abandon_recovery_more_admin_first.js',
		integration: './admin/assets/js/pages/pixelio_cart_abandon_recovery_more_admin_integration.js',
		dashboard: './admin/assets/js/pages/pixelio_cart_abandon_recovery_more_admin_dashboard.js',
		header: './admin/assets/js/components/pixelio_cart_abandon_recovery_more_admin_header.js',
		public: './frontend/assets/js/public.js',
		rgpd: './admin/assets/js/pages/pixelio_cart_abandon_recovery_more_admin_rgpd.js',
	},
	output: {
		path: path.resolve(__dirname, './admin/assets/js/pages/dist'),
		filename: '[name].bundle.js'
	},
	module: {
		rules: [
			{
				test: /\.js$/,
				exclude: /node_modules/,
				use: {
					loader: 'babel-loader'
				}
			}
		]
	}, resolve: {
		extensions: ['.js'], // This allows you to import .js files without specifying the extension

	},
	mode: 'development',
};
