@redhat-actions/webpack-config
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Red Hat Actions Webpack Config

webpack config

GitHub Actions tend to use @vercel/ncc for bundling due to its ease of use. However, on multiple occasions I've had ncc stop working without any obvious way to fix it.

On those projects, I've migrated to webpack, so the config is stored here.

Install

Install peer dependencies:

npm i -D webpack webpack-cli ts-loader @types/terser-webpack-plugin

Install the config:

npm i -D @redhat-actions/webpack-config

Create webpack.config.js with the following content:

//@ts-check

module.exports = require("@redhat-actions/webpack-config")(__dirname);

If you need to modify/override the config, you can set module.exports to a function instead, modify the require'd config as necessary, and return the config.

Readme

Keywords

Package Sidebar

Install

npm i @redhat-actions/webpack-config

Weekly Downloads

9

Version

1.2.0

License

MIT

Unpacked Size

3.47 kB

Total Files

4

Last publish

Collaborators

  • rtaniwa
  • diagrawa
  • tetchel