Skip to content

Commit

Permalink
Don’t output @config in CSS file after a rebuild (#12327)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Oct 30, 2023
1 parent 0985d26 commit cf97c22
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cli/build/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,16 @@ let state = {
},

getContext({ createContext, cliConfigPath, root, result, content }) {
env.DEBUG && console.time('Searching for config')
let configPath = findAtConfigPath(root, result) ?? cliConfigPath
env.DEBUG && console.timeEnd('Searching for config')

if (this.context) {
this.context.changedContent = this.changedContent.splice(0)

return this.context
}

env.DEBUG && console.time('Searching for config')
let configPath = findAtConfigPath(root, result) ?? cliConfigPath
env.DEBUG && console.timeEnd('Searching for config')

env.DEBUG && console.time('Loading config')
let config = this.loadConfig(configPath, content)
env.DEBUG && console.timeEnd('Loading config')
Expand Down

0 comments on commit cf97c22

Please sign in to comment.