UNPKG

asia-weex-vue-render4light

Version:

Web renderer for weex project written in Vue DSL.

17 lines (16 loc) 340 B
exports.getEntryFileContent = function getEntryFileContent ( vueFilePath, isNative ) { const webTemplate = ` const App = require('${vueFilePath}') App.el = '#root' new Vue(App) ` const nativeTemplate = ` import App from '${vueFilePath}' App.el = '#root' new Vue(App) ` return isNative ? nativeTemplate : webTemplate }