mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
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:
parent
a7ffce10ee
commit
1b5971a0bc
@ -166,6 +166,7 @@ export function getStylesConfig(wco: WebpackConfigOptions) {
|
|||||||
const fullPath = path.join(basePath, tailwindConfigFile);
|
const fullPath = path.join(basePath, tailwindConfigFile);
|
||||||
if (fs.existsSync(fullPath)) {
|
if (fs.existsSync(fullPath)) {
|
||||||
tailwindConfigPath = fullPath;
|
tailwindConfigPath = fullPath;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Only load Tailwind CSS plugin if configuration file was found.
|
// Only load Tailwind CSS plugin if configuration file was found.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user