/webpack-rs

Manage RS assets

Primary LanguageJavaScript

Webpack RS

This package is intended to manage common assets across our various repositories. This can be installed using

yarn add -D webpack-rs

This package exposes the following:

  • extendDefaultWebpackConfiguration: Use this to merge the base configuration with your apps configuration
  • Plugins: plugins where options are likely to vary between projects. This object currently exposes CopyWebpackPlugin, MiniCssExtractPlugin, and WebpackManifestPlugin
  • helpers: common functions that can be used in multiple projects

There's a basic example here that can be ran using npx webpack --config=example/webpack.config.js