Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chenjiahan/vue-render-loader
- Owner: chenjiahan
- Created: 2017-02-20T03:21:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-08T07:37:50.000Z (almost 8 years ago)
- Last Synced: 2024-10-19T19:45:51.567Z (3 months ago)
- Topics: render, template, vue, webpack
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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' }
]
}
}
```