Skip to content

Commit

Permalink
lib: restrict SASS plugin to scss files
Browse files Browse the repository at this point in the history
To aid our effort to move away from SASS to pure CSS explicitly restrict
the esbuild SASS plugin to only take SASS files. Every Cockpit project
can now slowly convert SASS files to CSS where possible.
  • Loading branch information
jelly committed Nov 4, 2024
1 parent ba02d5c commit 3b1a417
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/lib/esbuild-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const esbuildStylesPlugins = [
}),
sassPlugin({
loadPaths: [...nodePaths, 'node_modules'],
filter: /\.scss/,
quietDeps: true,
async transform(source, resolveDir, path) {
if (path.includes('patternfly-5-cockpit.scss')) {
Expand Down

0 comments on commit 3b1a417

Please sign in to comment.