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

Pug templates are not set as doctype html #894

Closed
CaleCrawford opened this issue Feb 27, 2018 · 1 comment
Closed

Pug templates are not set as doctype html #894

CaleCrawford opened this issue Feb 27, 2018 · 1 comment

Comments

@CaleCrawford
Copy link

Version

3.0.0-alpha.13

Reproduction link

https://codesandbox.io/s/pjzpx376q

Steps to reproduce

  1. Create a new project using the CLI.
  2. Set to
  3. Install pug
  4. Create element with a boolean value e.g. b-navbar(toggleable type="light")
  5. Start app and load page.
  6. What is expected?

    The render output should be <b-navbar toggleable type="light">

    What is actually happening?

    The rendered output is b-navbar toggleable="toggleable" type="light">


@CaleCrawford
Copy link
Author

After reading more source code I was able to get it to work using

  chainWebpack: (config) => {
    config.module
      .rule('vue')
      .test(/\.vue$/)
      .use('vue-loader')
      .loader('vue-loader')
      .tap((args) => ({
        ...args,
        template: {
          doctype: 'html',
        },
      }));
  },

Not sure if there would be a reason not to have this be the default.

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

No branches or pull requests

1 participant