mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
Apply review comments
This commit is contained in:
@ -8,12 +8,12 @@ D'abord, il faut ajouter dans node via `package.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
// ...
|
||||
"imports": {
|
||||
// ...
|
||||
"#mon_app:*": "./mon_app/static/webpack/*"
|
||||
}
|
||||
// ...
|
||||
// ...
|
||||
"imports": {
|
||||
// ...
|
||||
"#mon_app:*": "./mon_app/static/webpack/*"
|
||||
}
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
@ -21,13 +21,13 @@ Ensuite, pour faire fonctionne l'auto-complétion, il faut configurer `tsconfig.
|
||||
|
||||
```json
|
||||
{
|
||||
"compilerOptions": {
|
||||
// ...
|
||||
"paths": {
|
||||
// ...
|
||||
"#mon_app:*": ["./mon_app/static/webpack/*"]
|
||||
}
|
||||
}
|
||||
"compilerOptions": {
|
||||
// ...
|
||||
"paths": {
|
||||
// ...
|
||||
"#mon_app:*": ["./mon_app/static/webpack/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -48,9 +48,9 @@ Pour accéder au fichier, il faut utiliser `static` comme pour le reste mais en
|
||||
|
||||
### Les imports au sein des fichiers de webpack
|
||||
|
||||
Pour importer au sein de webpack, faut préfixer ses imports de `#app:`.
|
||||
Pour importer au sein de webpack, il faut préfixer ses imports de `#app:`.
|
||||
|
||||
Example:
|
||||
Exemple:
|
||||
|
||||
```js
|
||||
import { paginated } from "#core:utils/api";
|
||||
|
Reference in New Issue
Block a user