Skip to content
This repository was archived by the owner on Aug 27, 2020. It is now read-only.
This repository was archived by the owner on Aug 27, 2020. It is now read-only.

question: is there an advantage of using 'WithRender' #2

@dvic

Description

@dvic

Considering the Hello example, is there a reason not to use regular imports for CSS and the template property of the Component decorator?

import Vue from "vue";
import Component from "vue-class-component";
import "./Hello.css";

@Component({
  template: require("./Hello.html"),
})
export default class Hello extends Vue {
  msg = "Welcome to Your Vue.js App";

  constructor() {
    super();
  }
}

The example in the template is currently:

import Vue from "vue";
import Component from "vue-class-component";
import WithRender from "./Hello.html?style=./Hello.css";

@WithRender
@Component
export default class Hello extends Vue {
  msg = "Welcome to Your Vue.js App";

  constructor() {
    super();
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions