source/plugin/write assets.js
function get_assets(name, extension = 'js')
	{
		let chunk = json.assetsByChunkName[name]

		// a chunk could be a string or an array, so make sure it is an array
		if (!(Array.isArray(chunk)))
		{
			chunk = [chunk]
		}

		return chunk
			// filter by extension
			.filter(name => path.extname(extract_path(name)) === `.${extension}`)
			// adjust the real path (can be http, filesystem)
			.map(name => options.assets_base_url + name)
	}
function get_assets(name, extension = 'js')
	{
		let chunk = json.assetsByChunkName[name]

		// a chunk could be a string or an array, so make sure it is an array
		if (!(Array.isArray(chunk)))
		{
			chunk = [chunk]
		}

		return chunk
			// filter by extension
			.filter(name => path.extname(extract_path(name)) === `.${extension}`)
			// adjust the real path (can be http, filesystem)
			.map(name => options.assets_base_url + name)
	}
function get_assets ( name , extension = 'js' ) { let chunk = json . assetsByChunkName [ name ] // a chunk could be a string or an array, so make sure it is an array if ( ! ( Array . isArray ( chunk ) ) ) { chunk = [ chunk ] } return chunk // filter by extension . filter ( name => path . extname ( extract_path ( name ) ) === ` ${ extension } ` ) // adjust the real path (can be http, filesystem) . map ( name => options . assets_base_url + name ) }
gets asset paths by name and extension of their chunk
gets asset paths by name and extension of their chunk