diff --git a/invenio_assets/assets/build/webpack.config.js b/invenio_assets/assets/build/webpack.config.js index 2dda428..5b31989 100644 --- a/invenio_assets/assets/build/webpack.config.js +++ b/invenio_assets/assets/build/webpack.config.js @@ -3,6 +3,7 @@ * Copyright (C) 2017-2018 CERN. * Copyright (C) 2022-2023 Graz University of Technology. * Copyright (C) 2023 TU Wien. + * Copyright (C) 2023 KTH Royal Institute of Technology. * * Invenio is free software; you can redistribute it and/or modify it * under the terms of the MIT License; see LICENSE file for more details. @@ -207,7 +208,7 @@ var webpackConfig = { filename: "css/[name].[contenthash].css", chunkFilename: "css/[name].[contenthash].css", }), - // Removes the dist folder before each run. +// Removes the dist folder before each run. new CleanWebpackPlugin({ dry: false, verbose: false, @@ -251,7 +252,9 @@ var webpackConfig = { }, watchOptions: { followSymlinks: true, + ignored: "**/node_modules", }, + cache: process.env.NODE_ENV === "production" ? true : false, }; if (process.env.npm_config_report) {