Skip to content

Commit c564ee1

Browse files
committed
fix: temporarily close minify
1 parent 2979442 commit c564ee1

File tree

6 files changed

+4
-10
lines changed

6 files changed

+4
-10
lines changed

.npmrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
shamefully-hoist=true
2-
strict-peer-dependencies=false
3-
registry=https://registry.npmjs.org/
2+
strict-peer-dependencies=false

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
},
3131
"dependencies": {
3232
"@nuxt/kit": "^3.12.4",
33-
"cssnano": "^7.0.6",
3433
"ohash": "^1.1.3",
34+
"cssnano": "^7.0.6",
3535
"purgecss": "^6.0.0",
3636
"purgecss-from-html": "^6.0.0"
3737
},

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default defineNuxtModule<ModuleOptions>({
2222
configKey: 'Extracts the style of the page as an external css when rendered on the server side | 提取服务端渲染时页面的 style 为外部 css',
2323
},
2424
defaults: {
25-
minify: true,
25+
minify: false,
2626
removeUnused: true,
2727
},
2828
async setup(_options, nuxt) {
@@ -65,7 +65,7 @@ export default defineNuxtModule<ModuleOptions>({
6565
addTypeTemplate({
6666
filename: 'nuxt-style-extractor-options.d.ts',
6767
getContents() {
68-
return readFile(resolver.resolve('./nuxt-style-extractor-options.d.ts'), 'utf-8')
68+
return readFile(resolver.resolve('./runtime/nuxt-style-extractor-options.d.ts'), 'utf-8')
6969
},
7070
})
7171
},

src/runtime/inject-style-id.server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import purgehtml from 'purgecss-from-html'
55
import { defineNuxtPlugin } from '#imports'
66
import extractorOptions from '#build/nuxt-style-extractor-options.mjs'
77

8-
console.log(extractorOptions)
9-
108
interface Options {
119
html: string
1210
css: string
File renamed without changes.

0 commit comments

Comments
 (0)