Skip to content

Commit

Permalink
build(Vue-cli): Cache les logs de build du frontend (webpack) (#4876)
Browse files Browse the repository at this point in the history
  • Loading branch information
Charline-L authored Jan 10, 2025
1 parent ebb2aa6 commit a96c0f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ALLOWED_HOSTS=localhost
SECRET=my local secret
DEBUG=True
DEBUG_FRONT=True
DEBUG_WEBPACK_PROGRESS=False
DB_USER=postgres
DB_PASSWORD=password
DB_HOST=db
Expand Down
1 change: 1 addition & 0 deletions docs/ONBOARDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ L'application utilise [python-dotenv](https://pypi.org/project/python-dotenv/),
SECRET= Le secret pour Django (vous pouvez le [générer ici](https://djecrety.ir/))
DEBUG= `True` pour le développement local ou `False` autrement
DEBUG_FRONT= `True` pour le développement local du 2024-front ou `False` autrement
DEBUG_WEBPACK_PROGRESS= `True` pour afficher la progression lors du build de webpack pour le `frontend`
DB_USER= L'utilisateur de la base de données. Doit avoir les droits de creation de db pour les tests (par ex. 'macantine_egalim_team')
DB_PASSWORD= Le mot de passe pour accéder à la base de données
DB_HOST= Le host de la base de données (par ex. '127.0.0.1')
Expand Down
7 changes: 6 additions & 1 deletion frontend/vue.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const BundleTracker = require("webpack-bundle-tracker")
const debug = !process.env.DEBUG || process.env.DEBUG === "True"
const debugWebpackProgress = process.env.DEBUG_WEBPACK_PROGRESS === "True"

const FRONTEND_URL = "http://localhost:8080"

Expand All @@ -20,12 +21,16 @@ module.exports = {
loaderOptions: {
sass: {
sassOptions: {
silenceDeprecations: ["slash-div", "legacy-js-api"],
silenceDeprecations: ["slash-div", "legacy-js-api", "global-builtin", "import"],
},
},
},
},

devServer: {
progress: debugWebpackProgress,
},

chainWebpack: (config) => {
config.optimization.splitChunks(false)

Expand Down

0 comments on commit a96c0f2

Please sign in to comment.