src/index.js
function getDirFromPublicPath(file) {
	return path.posix.dirname(
		path.posix.normalize(
			path.posix.sep
			+ file.path().replace(
				new RegExp(
					'^' + escapeStringRegExp(path.resolve(Config.publicPath))
				),
				''
			).split(path.sep).join(path.posix.sep)
		)
	);
}
function getDirFromPublicPath(file) {
	return path.posix.dirname(
		path.posix.normalize(
			path.posix.sep
			+ file.path().replace(
				new RegExp(
					'^' + escapeStringRegExp(path.resolve(Config.publicPath))
				),
				''
			).split(path.sep).join(path.posix.sep)
		)
	);
}
function getDirFromPublicPath ( file ) { return path . posix . dirname ( path . posix . normalize ( path . posix . sep + file . path ( ) . replace ( new RegExp ( '^' + escapeStringRegExp ( path . resolve ( Config . publicPath ) ) ) , '' ) . split ( path . sep ) . join ( path . posix . sep ) ) ) ; }
Get the directory of file from public path.

@param  {Object} file The file.
@return {string}      The directory of file from public path.
Get the directory of file from public path .