How to use the @wordpress/scripts/config/webpack.config.stats function in @wordpress/scripts

To help you get started, we’ve selected a few @wordpress/scripts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github godaddy-wordpress / coblocks / .dev / config / webpack.config.js View on Github external
{
				test: /style\.scss$/,
				use: styleExtractConfig,
			},

			{
				test: /editor\.scss$/,
				use: styleExtractConfig,
			},

		],
	},

	stats: {
		...defaultConfig.stats,
		modules: false,
		warnings: false,
	},

	plugins: [
		...defaultConfig.plugins,

		new FixStyleOnlyEntriesPlugin(),
		new MiniCssExtractPlugin( {
			filename: '[name].css',
		} ),
	],
};