PluginProbe
Posts Table with Search & Sort / 1.4.13
Posts Table with Search & Sort v1.4.13
1.4.13 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2 1.3 1.3.1 1.3.1-v2 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 All 40 releases
posts-data-table / webpack.config.js

webpack.config.js in Posts Table with Search & Sort 1.4.13, at webpack.config.js

31 lines 639 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
2 const Barn2Configuration = require( '@barn2plugins/webpack-config' );
3
4 const config = new Barn2Configuration(
5 [
6 'posts-data-table-main/index.js',
7 ],
8 [
9 'admin/posts-data-table-admin.scss',
10 'posts-data-table-main.scss',
11 ],
12 defaultConfig
13 );
14
15 const b2Config = {
16 ...config.getWebpackConfig(),
17 module: {
18 rules: [
19 ...config.getWebpackConfig().module.rules,
20 {
21 test: /\.(woff|woff2|eot|ttf|otf)$/i,
22 type: 'asset/resource',
23 generator: {
24 filename: '../lib/assets/fonts/[name][ext]',
25 },
26 },
27 ],
28 },
29 };
30
31 module.exports = b2Config;