From 9303f74b1cd3eff3f7188e30751c551b7acdca1c Mon Sep 17 00:00:00 2001 From: dvelo <52332868+DeveloLongScript@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:58:36 -0500 Subject: [PATCH] fix: removing webpack junk --- next.config.mjs | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index cfea624..d9ab87f 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,5 +1,3 @@ -import MangleCssClassPlugin from "mangle-css-class-webpack-plugin"; - /** @type {import('next').NextConfig} */ const nextConfig = { images: { @@ -10,36 +8,6 @@ const nextConfig = { }, ], }, - webpack: (config, { dev }) => { - config.resolve.modules.push(path.resolve("./")); - - if (!dev) { - config.plugins.push( - new MangleCssClassPlugin({ - classNameRegExp: - "(([a-zA-Z-:]*)[\\\\\\\\]*:)*([\\\\\\\\]*!)?tw-[a-zA-Z-]([a-zA-Z0-9-]*([\\\\\\\\]*(\\%|\\#|\\.|\\[|\\]))*)*", - // ignorePrefixRegExp: "((hover|focus|active|disabled|visited|first|last|odd|even|group-hover|focus-within|xs|sm|md||lg|xl)(\\\\\\\\\\\\\\\\|\\\\)?:)*", - - classGenerator: (original, opts, context) => { - if (classNames[original]) { - return classNames[original]; - } - - let nextId; - - do { - // Class name cannot start with a number. - nextId = `cfk-${Math.random()}`; - } while (/^[0-9_-]/.test(nextId)); - - return (classNames[original] = nextId); - }, - // log: true - }) - ); - } - return config; - }, }; export default nextConfig;