Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pages property in vue.config.js support template loader like html-webpack-plugin does. #4755

Open
qidaneix opened this issue Oct 25, 2019 · 1 comment

Comments

@qidaneix
Copy link

qidaneix commented Oct 25, 2019

What problem does this feature solve?

Sometimes we need html-webpack-pulgin handle html template for more flexable requirement, template like ejs, underscore and so on. Like html-webpack-pulgin does:

new HtmlWebpackPlugin({
  template: '!!handlebars!src/index.hbs'
})

What does the proposed API look like?

It seems the page can not support add template loader like below:

module.exports = {
  pages: {
    index: {
      entry: 'src/main.ts',
      template: ''!!handlebars!src/index.hbs',
      filename: 'index.html'
    }
  }
}

hope to add this feature, html-webpack-plugin has support this after all

@lucaslz2020
Copy link

It's a bit ugly now, because js CDN can only be written in html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants