@hs-web-team/webpack-config
A shared Webpack configuration for Hubspot CMS projects.
Installation
npm install --save-dev @hs-web-team/webpack-config
Usage
The following configurations are available:
To use the configuration, import it from the package:
const { cmsConfig } = require('@hs-web-team/webpack-config');
You can use these configurations directly in your Webpack configuration file:
const { cmsConfig } = require('@hs-web-team/webpack-config');
module.exports = cmsConfig;
Customizing the configuration
You can override any of the values in the configuration by spreading the object and overriding the values you want to change.
const { merge } = require('webpack-merge');
const { cmsConfig } = require('@hs-web-team/webpack-config');
const customWebpackConfig = merge(cmsConfig, {
});
module.exports = customWebpackConfig;