---
title: "Discussion on \"Useful Webpack DefinePlugin Usages\" | Hashnode"
description: "Discussion on \"Useful Webpack DefinePlugin Usages\". What the plugin does\nThe Webpack DefinePlugin allows you to create \nglobal constants which can be configured at compile time and used in your webpack bundle. \nExample constant definitions:\nplugins: [\n  //...\n  new webpack.DefinePlugin({\n      PRODUCT..."
url: "https://hashnode.com/posts/useful-webpack-defineplugin-usages/66bc9ef740ee582a3f483723"
---

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

Discussion

# [Useful Webpack DefinePlugin Usages](https://tomasalabes.me/useful-webpack-defineplugin-usages?utm_source=hashnode&utm_medium=feed)

What the plugin does The Webpack DefinePlugin allows you to create global constants which can be configured at compile time and used in your webpack bundle. Example constant definitions: plugins: \[ //... new webpack.DefinePlugin({ PRODUCT...

Jan 3, 2017 · 3 min read · tomasalabes.me  
Read the article

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

## Written by

[Tomas Alabes](https://hashnode.com/@talabes)

@talabes · Amsterdam, Netherlands

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

Technical Lead, Architect and serial learner

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
