UNPKG

348 BJavaScriptView Raw
1const path = require('path')
2const getDistPath = require('./get-dist-path')
3
4/**
5 * 获取打包文件对应表 (chunkmap) 的文件路径
6 * @param {string} [dist] 打包结果目录,默认为项目指定的路径
7 * @returns {string}
8 */
9module.exports = (dist = getDistPath()) => (
10 path.resolve(dist, '.public-chunkmap.json')
11)