Skip to content

OrangeLab/harmony-render-function-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Hummer鸿蒙渲染函数生成插件

使用示例

const path = require('path')
const HarmonyRenderFunctionPlugin= require('@hummer/harmony-render-function-generator')


module.exports = {
  type: 'hummer',
  webpack: {
    // entries: "src/*/index.ts",
    entries: "src/*.js",
    output: {
      path: path.resolve(__dirname, './dist'),
      filename: "[name].js"
    },
    plugins: [
      new HarmonyRenderFunctionPlugin({
        wrapFunction: 'renderFunc'
      }),
    ]
  }
}

注意:需要发包

About

Hummer鸿蒙渲染函数生成插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published