app.use(function (req, res) {
res.set("Content-Encoding", "br");
res.sendFile(path.join(__dirname, "../", "prerendered", "index.html.br"));
});
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
createApp(App).use(store).use(router).mount("#app");
createApp({
mounted() {
document.dispatchEvent(new Event("render-event"));
},
});
const app = createApp(App).use(store).use(router);
app.mounted(){document.dispatchEvent(new Event("render-event"))}
app.mount("#app");
let compiledhbs = require('src/app-info.hbs')({appName: "someName"});
compiler.hooks.emit.emitFile(FileName, compiledhbs)
, но не нашел упоминаний об таком (возможно ли заемитить файл не из-под плагина)
)?