https://github.com/researchsquare/webpack-rs
Manage RS assets
https://github.com/researchsquare/webpack-rs
customer
Last synced: about 1 month ago
JSON representation
Manage RS assets
- Host: GitHub
- URL: https://github.com/researchsquare/webpack-rs
- Owner: researchsquare
- Created: 2020-03-27T19:41:41.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-08-28T06:07:51.000Z (almost 2 years ago)
- Last Synced: 2024-08-28T19:50:49.558Z (almost 2 years ago)
- Topics: customer
- Language: JavaScript
- Homepage:
- Size: 714 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# 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
- `helpers.optimizeImages`: This can be used along w/ `new Plugins.CopyWebpackPlugin` to optimize images copied via webpack (see https://webpack.js.org/plugins/copy-webpack-plugin/#transform for more information)
There's a basic example [here](/example/webpack.config.js) that can be ran using `npx webpack --config=example/webpack.config.js`