/webpack-config-presets

Primary LanguageJavaScriptApache License 2.0Apache-2.0

@nod/webpack-config-presets

Reusable and composable webpack presets

Installation

npm i -D @nod/webpack-config-presets

Usage

const {
  web, // web safe build without native node modules
  dotEnv, // loads dotenv environment variables
  reducePluginLeft, // drops the first defined plugin useful
} = require('@nod/webpack-config-presets')

const config = {} //...your custom Webpack Config
module.exports = web(dotEnv(reducePluginLeft(yourWebpackConfig))),

Development and additional usage

Please see @nod/nod monorepo

License

Apache 2.0