Плагин сделан в рамках домашней работы в ШРИ 2021.
Плагин UnusedModulesPlugin выводит в файл список путей к неиспользованным в сборке модулям относительно корня проекта.
Опции:
pattern
: string — Маска для поискаignore
: array — Массив с масками для исключенийmodulesSearchPath
: string — Путь для поиска модулейfilePath
: string — Имя файла для выводаroot
: string — Путь к корню проектаenableLogs
: boolean — Включить вывод в консоль
Для запуска сборки используйте команду npm run build