Vue Html Loader

Posted on  by admin

Modified4 years, 5 months ago. I would like to use the modular style and file format of Vue Loader (i.e., where I have a template section, script section and style section in each .vue file).

What I can't figure out how to do (or if it is even possible to do) is use my custom templates in an html file. For instance, in the App.vue file I can use the following code:. This will work to display a custom message component on the home page.

Options

'Root-relative' urls

Credits

License

What I would like to do instead is use my custom components in html files.

OptionDescriptionDefault
removeCommentsremove html commentstrue
removeWhiteSpaceremove html whiteSpacetrue
removeNewlineremove html newLine (actual \r\n)true