Package Exports
- nextjs-plugin-minify-css-classname
- nextjs-plugin-minify-css-classname/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nextjs-plugin-minify-css-classname) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nextjs-plugin-minify-css-classname
A Next.js plugin to minify css classnames. No any external dependencies.
🚧 Before
<main class="App_content_g9yLL">
<p class="Message_message_7VBcg">hello,
<span class="Message_strong_kQiZl">world!</span>
</p>
</main>✨ after
<main class="a">
<p class="b">hello,
<span class="c">world!</span>
</p>
</main>🔌 Installation
$ npm install -D nextjs-plugin-minify-css-classnameor
$ yarn add -D nextjs-plugin-minify-css-classname🏄 Usage
next.config.js
const withMinifyClassname = require('nextjs-plugin-minify-css-classname')({
enabled: process.env.NODE_ENV === 'production',
});
module.exports = withMinifyClassname({
// other configs
})🏁 LICENSE
MIT