mirror of
https://gh.wpcy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-05-06 23:46:29 +08:00
41 lines
950 B
JavaScript
41 lines
950 B
JavaScript
const path = require('path');
|
|
const defaultConfig = require('@wordpress/scripts/config/webpack.config');
|
|
|
|
// add your entry points here
|
|
const entryPoints = {
|
|
admin: path.resolve(process.cwd(), 'modules/settings/assets/js', 'admin.js'),
|
|
};
|
|
|
|
module.exports = {
|
|
...defaultConfig,
|
|
entry: entryPoints,
|
|
output: {
|
|
...defaultConfig.output,
|
|
path: path.resolve(process.cwd(), 'assets/build'),
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@ea11y/hooks': path.resolve(
|
|
__dirname,
|
|
'modules/settings/assets/js/hooks/',
|
|
),
|
|
'@ea11y/components': path.resolve(
|
|
__dirname,
|
|
'modules/settings/assets/js/components/',
|
|
),
|
|
'@ea11y/icons': path.resolve(
|
|
__dirname,
|
|
'modules/settings/assets/js/icons/',
|
|
),
|
|
'@ea11y/layouts': path.resolve(
|
|
__dirname,
|
|
'modules/settings/assets/js/layouts/',
|
|
),
|
|
'@ea11y/pages': path.resolve(
|
|
__dirname,
|
|
'modules/settings/assets/js/pages/',
|
|
),
|
|
},
|
|
extensions: ['.js', '.jsx'],
|
|
},
|
|
};
|