---
title: "Discussion on \"What does this __dirname even mean?\" | Hashnode"
description: "Discussion on \"What does this __dirname even mean?\". You might have seen this guy __dirname a couple of times, maybe in a webpack config like this\n const path = require('path');\n\n module.exports = {\n   entry: './src/index.js',\n   output: {\n     filename: 'bundle.js',\n     path: path.resolve(__dirname, ..."
url: "https://hashnode.com/posts/what-does-this-dirname-even-mean/616430d418374f25732746f4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What does this \_\_dirname even mean?](https://blog.sairaj.me/what-does-this-dirname-even-mean?utm_source=hashnode&utm_medium=feed)

You might have seen this guy \_\_dirname a couple of times, maybe in a webpack config like this const path = require('path'); module.exports = { entry: './src/index.js', output: { filename: 'bundle.js', path: path.resolve(\_\_dirname, ...

Oct 11, 2021 · 3 min read · blog.sairaj.me  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Sairaj](https://hashnode.com/@sairaj)

@sairaj

  
[View profile](https://hashnode.com/@sairaj)

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
