Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
make stylesheets sideEffects to stop treeshaking (#34)
Browse files Browse the repository at this point in the history
Shaun Evening authored Apr 27, 2023
1 parent ca97580 commit d199ff3
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/webpack/css/webpack.ts
Original file line number Diff line number Diff line change
@@ -47,6 +47,7 @@ const buildCssRule = (options: AddonStylingOptions): RuleSetRule => {
return {
test: CSS_FILE_REGEX,
use: buildRule,
sideEffects: true,
};
};

1 change: 1 addition & 0 deletions src/webpack/scss/webpack.ts
Original file line number Diff line number Diff line change
@@ -81,6 +81,7 @@ const buildScssRule = (options: AddonStylingOptions): RuleSetRule => {
return {
test: SCSS_FILE_REGEX,
use: buildRule,
sideEffects: true,
};
};

0 comments on commit d199ff3

Please sign in to comment.