laipower/wp-content/plugins/gp-premium/webpack.config.js

30 lines
672 B
JavaScript

const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
const defaultEntries = defaultConfig.entry();
module.exports = {
...defaultConfig,
// Needed for the 'lib-font' package to work.
resolve: {
fallback: {
fs: false,
zlib: false,
},
symlinks: false,
},
entry: {
...defaultEntries,
'block-elements': './src/block-elements.js',
'font-library': './src/font-library.js',
'site-library': './src/site-library.js',
customizer: './src/customizer.js',
dashboard: './src/dashboard.js',
editor: './src/editor.js',
packages: './src/packages.scss',
},
output: {
...defaultConfig.output,
path: __dirname + '/dist',
},
};