Standard Webpack deployment for React
About
This exports the standard webpack configuration for React deployments.
Installation
npm install @gabeklein/webpack-react-app
Usage
webpack.config.js
const config = require("@gabeklein/webpack-react-app");
module.exports = config({
title: "My Website"
})
Arguments
-
title
- Title of HTML webpage by default. -
dir
- Working directory (optional) -
mode
- Webpack mode -"development" | "production"