vue-render-loader
v1.1.1
Published
Vue 2 render loader for webpack
Downloads
81
Readme
vue-render-loader
Vue2 render loader for webpack2 && typescript2.
Example
component.html
<div>{{ text }}</div>
component.ts
import render from './component.html';
import { Vue, Component } from 'vue-class';
@Component({
render,
props: ['text']
})
export default class MyComponent extends Vue {}
Webpack config
module.exports = {
module: {
rules: [
{ test: /\.html$/, use: 'vue-render-loader' }
]
}
}