mirror of https://github.com/vuejs/core.git
workflow(sfc-playground): set all scopes to production mode (#6815)
This commit is contained in:
parent
e4de623ea7
commit
e049772247
|
@ -36,7 +36,14 @@ const store = new ReplStore({
|
|||
const sfcOptions = {
|
||||
script: {
|
||||
inlineTemplate: !useDevMode.value,
|
||||
isProd: !useDevMode.value,
|
||||
reactivityTransform: true
|
||||
},
|
||||
style: {
|
||||
isProd: !useDevMode.value
|
||||
},
|
||||
template: {
|
||||
isProd: !useDevMode.value
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -51,7 +58,11 @@ watchEffect(() => {
|
|||
|
||||
function toggleDevMode() {
|
||||
const dev = (useDevMode.value = !useDevMode.value)
|
||||
sfcOptions.script.inlineTemplate = !dev
|
||||
sfcOptions.script.inlineTemplate =
|
||||
sfcOptions.script.isProd =
|
||||
sfcOptions.template.isProd =
|
||||
sfcOptions.style.isProd =
|
||||
!dev
|
||||
store.setFiles(store.getFiles())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue