UNPKG

piral-cli-webpack5

Version:

Provides debug and build capabilities for pilets and Piral instances using Webpack v5.

10 lines (8 loc) 167 B
var parse = require('url').parse; exports.pathMatch = function(url, path) { try { return parse(url).pathname === path; } catch (e) { return false; } };