fix(@angular-devkit/build-angular): the root Tailwind configuration file is always picked

A configuration file in the project root should take precedence over one in the workspace root, but it's not currently the case.
This commit is contained in:
Amadou Sall 2021-02-07 09:35:31 +01:00 committed by Charles
parent a7ffce10ee
commit 1b5971a0bc

View File

@ -166,6 +166,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
const fullPath = path.join(basePath, tailwindConfigFile);
if (fs.existsSync(fullPath)) {
tailwindConfigPath = fullPath;
break;
}
}
// Only load Tailwind CSS plugin if configuration file was found.