PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.5
JetFormBuilder — Dynamic Blocks Form Builder v3.6.5
3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / modules / blocks-v2 / phone-field / webpack.config.js
jetformbuilder / modules / blocks-v2 / phone-field Last commit date
admin-tabs 3 months ago assets 2 months ago tools 3 months ago block-asset.php 2 months ago block-render.php 3 months ago block-template.php 3 months ago block-type.php 3 months ago block.json 3 months ago postcss.config.js 3 months ago webpack.config.js 3 months ago
webpack.config.js
65 lines
1 const WPExtractorPlugin = require(
2 '@wordpress/dependency-extraction-webpack-plugin',
3 );
4
5 // eslint-disable-next-line import/no-extraneous-dependencies
6 const MiniCssExtractPlugin = require( 'mini-css-extract-plugin' );
7
8 const path = require( 'path' );
9 const devMode = !process.argv.join( ':' ).includes( '--mode:production' );
10
11 module.exports = {
12 context: path.resolve( __dirname, 'assets/src' ),
13 entry: {
14 'frontend/field': './frontend/field/index.js',
15 'editor/index': './editor/index.js',
16 },
17 output: {
18 path: path.resolve( __dirname, 'assets/build' ),
19 devtoolNamespace: 'jfb-phone-field',
20 chunkFilename: ( pathData ) => {
21 // Place i18n chunks in frontend/i18n/ subfolder
22 if ( pathData.chunk.name && pathData.chunk.name.startsWith( 'phone-i18n-' ) ) {
23 return 'frontend/i18n/[name].js';
24 }
25 // Other chunks go to frontend/
26 return 'frontend/[name].js';
27 },
28 },
29 devtool: devMode ? 'inline-cheap-module-source-map' : false,
30 resolve: {
31 extensions: [ '.js', '.jsx' ],
32 },
33 module: {
34 rules: [
35 {
36 test: /\.js(x)?$/,
37 use: [
38 'babel-loader',
39 '@wyw-in-js/webpack-loader',
40 ],
41 exclude: /node_modules/,
42 },
43 {
44 test: /\.s?css$/,
45 use: [
46 MiniCssExtractPlugin.loader,
47 'css-loader',
48 'postcss-loader',
49 ],
50 },
51 {
52 test: /\.(png|jpe?g|gif|svg|webp)$/i,
53 type: 'asset/resource',
54 generator: {
55 filename: 'images/[name][ext]',
56 },
57 },
58 ],
59 },
60 plugins: [
61 new WPExtractorPlugin(),
62 new MiniCssExtractPlugin(),
63 ],
64 };
65