dsfr.min.css référence les SVG via ../icons/ (résout vers assets/icons/) alors que icons.min.css les référence via ../../icons/ (assets/dsfr/icons/). Les deux chemins sont maintenant mappés dans angular.json. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
86 lines
2.6 KiB
JSON
86 lines
2.6 KiB
JSON
{
|
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
"version": 1,
|
|
"newProjectRoot": "projects",
|
|
"projects": {
|
|
"front-public": {
|
|
"projectType": "application",
|
|
"schematics": {
|
|
"@schematics/angular:component": {
|
|
"style": "scss",
|
|
"standalone": true,
|
|
"changeDetection": "OnPush"
|
|
}
|
|
},
|
|
"root": "",
|
|
"sourceRoot": "src",
|
|
"prefix": "app",
|
|
"architect": {
|
|
"build": {
|
|
"builder": "@angular-devkit/build-angular:application",
|
|
"options": {
|
|
"outputPath": "dist/front-public",
|
|
"index": "src/index.html",
|
|
"browser": "src/main.ts",
|
|
"polyfills": ["zone.js"],
|
|
"tsConfig": "tsconfig.json",
|
|
"assets": [
|
|
"src/favicon.ico",
|
|
"src/assets",
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@gouvfr/dsfr/dist/dsfr",
|
|
"output": "assets/dsfr"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@gouvfr/dsfr/dist/utility",
|
|
"output": "assets/dsfr/utility"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@gouvfr/dsfr/dist/icons",
|
|
"output": "assets/dsfr/icons"
|
|
},
|
|
{
|
|
"glob": "**/*",
|
|
"input": "node_modules/@gouvfr/dsfr/dist/icons",
|
|
"output": "assets/icons"
|
|
}
|
|
],
|
|
"styles": ["src/styles.scss"],
|
|
"scripts": []
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"budgets": [
|
|
{ "type": "initial", "maximumWarning": "500kB", "maximumError": "1MB" },
|
|
{ "type": "anyComponentStyle", "maximumWarning": "4kB", "maximumError": "8kB" }
|
|
],
|
|
"outputHashing": "all"
|
|
},
|
|
"development": {
|
|
"optimization": false,
|
|
"extractLicenses": false,
|
|
"sourceMap": true
|
|
}
|
|
},
|
|
"defaultConfiguration": "production"
|
|
},
|
|
"serve": {
|
|
"builder": "@angular-devkit/build-angular:dev-server",
|
|
"configurations": {
|
|
"production": { "buildTarget": "front-public:build:production" },
|
|
"development": { "buildTarget": "front-public:build:development" }
|
|
},
|
|
"defaultConfiguration": "development",
|
|
"options": {
|
|
"proxyConfig": "proxy.conf.json",
|
|
"allowedHosts": ["datacat.dev.chmod777.dev"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|