Skip to content

Commit

Permalink
Remove the include setting from the CSS rules
Browse files Browse the repository at this point in the history
  • Loading branch information
homer0 committed Apr 12, 2018
1 parent a95b2a3 commit f878155
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions src/services/configurations/rulesConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ class WebpackRulesConfiguration extends ConfigurationFile {

const rules = [{
test: /\.css$/i,
include: [
new RegExp(target.folders.source),
...target.includeModules.map((name) => new RegExp(`/node_modules/${name}`)),
],
use,
}];
// Reduce the rules.
Expand Down
7 changes: 0 additions & 7 deletions tests/services/configurations/rulesConfiguration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,24 +128,17 @@ describe('services/configurations:rulesConfiguration', () => {
use: cssUse,
};
// - - Rules
const cssInclude = [
new RegExp(target.folders.source),
...target.includeModules.map(() => expect.any(RegExp)),
];
rules.cssRulesForBrowser = [{
test: expect.any(RegExp),
use: extractResult,
include: cssInclude,
}];
rules.cssRulesForBrowserWithInject = [{
test: expect.any(RegExp),
use: cssUseWithInject,
include: cssInclude,
}];
rules.cssRulesForNode = [{
test: expect.any(RegExp),
use: cssUse,
include: cssInclude,
}];
// - HTML Rules
rules.htmlRules = [{
Expand Down

0 comments on commit f878155

Please sign in to comment.