@efox/emp-preact

1.1.4 • Public • Published

EMP Preact Config Plugin

Install

  • yarn add @efox/emp-preact -D
  • emp-config.js conf:
const withFrameWorkPlugin = require('@efox/emp-preact')
module.exports = withFrameWorkPlugin(({config, env, empEnv}) => {
  const projectName = 'preactComponents'
  config.plugin('mf').tap(args => {
    args[0] = {
      ...args[0],
      ...{
        name: projectName,
        library: {type: 'var', name: projectName},
        filename: 'emp.js',
        exposes: {
          './header': 'src/components/header/index.jsx',
        },
      },
    }
    return args 
  })
})

Readme

Keywords

none

Package Sidebar

Install

npm i @efox/emp-preact

Weekly Downloads

2

Version

1.1.4

License

none

Unpacked Size

2.82 kB

Total Files

4

Last publish

Collaborators

  • ron0115
  • hiitiger
  • ckken
  • doerme
  • hupp
  • magic_zhong
  • yz101x
  • wangcylive
  • tim2018
  • linhaoran
  • yangshangzhi
  • lucky-dog
  • wu_wei
  • nijina
  • zhengy1995
  • bennyshi
  • yellowbeee
  • keylenn