1.2.0 • Published 5 years ago
@redhat-actions/webpack-config v1.2.0
Red Hat Actions 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-pluginInstall the config:
npm i -D @redhat-actions/webpack-configCreate 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.