Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chenjiahan/vue-render-loader

Vue2 render loader for webpack
https://github.com/chenjiahan/vue-render-loader

render template vue webpack

Last synced: about 1 month ago
JSON representation

Vue2 render loader for webpack

Awesome Lists containing this project

README

        

# vue-render-loader
Vue2 render loader for webpack2 && typescript2.

### Example
component.html
``` html

{{ text }}

```

component.ts
``` typescript
import render from './component.html';
import { Vue, Component } from 'vue-class';

@Component({
render,
props: ['text']
})
export default class MyComponent extends Vue {}
```

### Webpack config
``` javascript
module.exports = {
module: {
rules: [
{ test: /\.html$/, use: 'vue-render-loader' }
]
}
}
```