Skip to content

HubSpotWebTeam/webpack-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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:

  • Hubspot CMS - cmsConfig

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:

// webpack.config.js
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.

// webpack.config.js
const { merge } = require('webpack-merge');
const { cmsConfig } = require('@hs-web-team/webpack-config');

const customWebpackConfig = merge(cmsConfig, {
  // Your custom configuration
});

module.exports = customWebpackConfig;