Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| kb_it:vuejs [2022/07/06 12:00] – befe | kb_it:vuejs [2022/09/24 22:18] (Version actuelle) – befe | ||
|---|---|---|---|
| Ligne 35: | Ligne 35: | ||
| disableHostCheck: | disableHostCheck: | ||
| } | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Webpack - Corriger le problème de connexion WS lors de l' | ||
| + | |||
| + | docker-compose.yml | ||
| + | <code yaml> | ||
| + | environment: | ||
| + | - CODESANDBOX_SSE=true | ||
| + | </ | ||
| + | |||
| + | ===== Vite - Configurer le port WS du client ===== | ||
| + | |||
| + | vite.config.js | ||
| + | <code javascript> | ||
| + | import { defineConfig } from ' | ||
| + | |||
| + | export default defineConfig({ | ||
| + | server: { | ||
| + | hmr: { | ||
| + | clientPort: 40000 | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Vite - Permettre les imports de modules ===== | ||
| + | |||
| + | vite.config.js | ||
| + | <code javascript> | ||
| + | import { defineConfig } from ' | ||
| + | import tsconfigPaths from ' | ||
| + | |||
| + | export default defineConfig({ | ||
| + | plugins: [tsconfigPaths()] | ||
| } | } | ||
| </ | </ | ||
| Ligne 111: | Ligne 146: | ||
| </ | </ | ||
| </ | </ | ||
| - | |||
| - | ==== Utiliser sass avec webpack ==== | ||
| - | |||
| - | <code bash> | ||
| - | npm install --save-dev sass-loader node-sass style-loader | ||
| - | </ | ||
| - | |||
| - | Puis relancer le serveur de développement. | ||
| ===== A CLASSER ===== | ===== A CLASSER ===== | ||