vue-cliでURLごとにtemplateのindex.htmlを変更することは可能でしょうか。
現在、自分のvue.config.js設定は以下の通りです。
pages: { index: { // entry for the page entry: "src/vue/app/main.js", // the source template template: "src/vue/app/public/index.html" } }
vue-routerを使わずにwebpack-dev-serverの機能で
URLごとにtemplateだけ差し替えることは可能でしょうか。
以下のようなイメージです。
module.exports = { devServer: { proxy: { '^/a': { templateを差し替える }, '^/b': { templateを差し替える } } } }
あなたの回答
tips
プレビュー