rollup-plugin-componentswxml

0.0.4 • Public • Published

rollup-plugin-componentswxml

Transform wechat mini app components's wxml

Install

npm install rollup-plugin-componentswxml -D

Useage

// rollup.config.js
import wxml from 'rollup-plugin-componentswxml';
export default {
  input: 'src/components/custom-component/index.js',
  plugins: [
    wxml({
      template: 'src/components/custom-component/index.wxml',
      filename: 'index.axml',
      dest: 'dist/cjs/components/custom-component',
      platform: 'alipay'
    })
  ],
  output: [
		{
			file: 'dist/cjs/compoents/custom-component/index.js',
			format: 'cjs',
		},
	],
}

Options

template type: string

filename type: string

dest type: string

platform type: string value: alipay

This option is used to determine the platform, default be wechat.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.40latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i rollup-plugin-componentswxml

Weekly Downloads

0

Version

0.0.4

License

ISC

Unpacked Size

8.06 kB

Total Files

4

Last publish

Collaborators

  • 1eeing