I want to serve my Vue application (as SPA) through django, and I passed across this article. The author use django-webpack-loader
to achieve this, but is not adding a simple TemplateView
around dist/index.html
will do the job:
url(r'^app/', TemplateView.as_view(template_name='index.html'), name='app'),
also this require altering settings.by
as follow:
'DIRS': [
BASE_DIR + "/templates/",
BASE_DIR + "/dist/",
]
My question is what is the role of django-webpack-loader
in the process if the app is already build using vue-cli
?