Skip to content

Commit cf97c22

Browse files
Don’t output @config in CSS file after a rebuild (#12327)
1 parent 0985d26 commit cf97c22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cli/build/plugin.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,16 @@ let state = {
224224
},
225225

226226
getContext({ createContext, cliConfigPath, root, result, content }) {
227+
env.DEBUG && console.time('Searching for config')
228+
let configPath = findAtConfigPath(root, result) ?? cliConfigPath
229+
env.DEBUG && console.timeEnd('Searching for config')
230+
227231
if (this.context) {
228232
this.context.changedContent = this.changedContent.splice(0)
229233

230234
return this.context
231235
}
232236

233-
env.DEBUG && console.time('Searching for config')
234-
let configPath = findAtConfigPath(root, result) ?? cliConfigPath
235-
env.DEBUG && console.timeEnd('Searching for config')
236-
237237
env.DEBUG && console.time('Loading config')
238238
let config = this.loadConfig(configPath, content)
239239
env.DEBUG && console.timeEnd('Loading config')

0 commit comments

Comments
 (0)