Skip to content

Commit

Permalink
added exclude build for _variables scss
Browse files Browse the repository at this point in the history
  • Loading branch information
Fellan-91 committed Sep 27, 2023
1 parent 33a9ebc commit 7ea45f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ const entryAssetsCss = glob
])
.reduce(function (entries, entry) {
const name = entry.replace('.scss', '').replace('src/', '');
entries[name] = resolve(process.cwd(), entry);
return entries;
const matchForExclude = name.includes('_variables');

if ( ! matchForExclude ) {
entries[name] = resolve(process.cwd(), entry);
}
return entries;
}, {});

const newConfig = {
Expand Down

0 comments on commit 7ea45f4

Please sign in to comment.