1.0.2 • Published 6 months ago

domz-webpack-miniprogram-pages-distribution-plugin v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

What can i use for ?

a webpack plugin to create image for introducing pages distribution

How to use in webpack

plugins: [
    new webpackPluginRouteDistribution({
        rootProjectName: 'your project name',
        fileName: 'pagesDistribution',
        dataType: 'array', // tree|array
        inputFile: path.join(__dirname, '/src/pages.json'),
        outputPath: path.join(process.cwd(), 'dist'),
        outputFileType: 'txt', // default=all|excel|txt
    })
]

How to use in Node

let test = new GeneratePagesDistributionPlugin({
    rootProjectName: 'xxx小程序',
    fileName: 'pagesDistribution',
    dataType: 'tree', // tree|array
    inputFile: path.join(__dirname, 'pages.json'),
    outputPath: path.join(process.cwd(), 'dist'),
    outputFileType: 'all', // default=all|excel|txt
})
test.hooksHandle()
1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago