mini-entry
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

mini-entry

解析小程序 json 文件

Usage

import getEntry from "mini-entry";

const entry = getEntry({
  entry: {
    app: "src/app.json",
    outside: "src/outside/**/*/app.json",
  },
  entrySuffix: {
    js: "ts",
    miniJs: "wxs",
    xml: "wxml",
  },
  compiledSuffix: {
    js: "js",
    css: "wxss",
    miniJs: "wxs",
    xml: "wxml",
  },
});

console.log(entry);

Package Sidebar

Install

npm i mini-entry

Weekly Downloads

2

Version

0.4.2

License

MIT

Unpacked Size

17.7 kB

Total Files

10

Last publish

Collaborators

  • gary_zhou
  • yiri