Skip to content

Instantly share code, notes, and snippets.

@rschristian
Created October 24, 2022 13:57
Show Gist options
  • Save rschristian/2c19dadf89055857673b85c9b35d8df5 to your computer and use it in GitHub Desktop.
Save rschristian/2c19dadf89055857673b85c9b35d8df5 to your computer and use it in GitHub Desktop.
Preact-CLI config to disable CSS modules
export default (config, env, helpers) => {
const { loader: cssLoader } = helpers.getLoadersByName(config, 'css-loader')[0];
cssLoader.options.modules = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment