I'm working on a little multi-page application based on Vue.js CLI 3 and Spring boot for the backend.
I read the official doc to build a multi page, so my vue.config.js
looks like:
module.exports = { outputDir: 'target/dist', pages: { home: { entry: 'src/home/home.js', template: 'src/home/home.html', filename: 'home.js' }, otherPage: {...} } }
Everything works fine, until I add some Thymeleaf syntax in my templates (e.g. with placholders ${text}
). The build fails because of the ${}
placeholders which are not resolved (I don't know which loader or plugin try to resolve thoses placeholders, I use the standard vue-cli webpack project structure..).
Is there a way to configure webpack in order to ignore the Thymeleaf syntax and to not trying to resolve thoses placeholders?