akameco / webpack-config-type-definition-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpack-config-type-definition-example

All Contributors

Usage

yarn add --dev @types/webpack

Add @type import('webpack').Configuration to your webpack.config.js.

/**
 * @type import('webpack').Configuration
 */
module.exports = {
  mode: "development",
  entry: "./src/index.js",
  output: {
    filename: "bundle.js"
  }
};

Wow!!

Image from Gyazo

What is this?

See Type Checking JavaScript Files · TypeScript

Contributors

Thanks goes to these wonderful people (emoji key):

akameco
akameco

💻 📖 ⚠️ 🚇

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT © akameco

About

License:MIT License


Languages

Language:JavaScript 100.0%