We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
{ optimize: true }
1 parent 8123fa5 commit b7dd979Copy full SHA for b7dd979
packages/@tailwindcss-postcss/src/index.ts
@@ -7,7 +7,7 @@ type PluginOptions = {
7
// The base directory to scan for class candidates.
8
base?: string
9
10
- // Optimize the output CSS.
+ // Optimize and minify the output CSS.
11
optimize?: boolean | { minify?: boolean }
12
}
13
@@ -45,7 +45,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin {
45
let output = css
46
if (optimize) {
47
output = optimizeCss(output, {
48
- minify: typeof optimize === 'object' ? optimize.minify : false,
+ minify: typeof optimize === 'object' ? optimize.minify : true,
49
})
50
51
root.append(postcss.parse(output, result.opts))
0 commit comments