mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 19:32:20 +08:00
chore(deps): remove webpack-deadcode-plugin in favor of knip
This commit is contained in:
@ -2,7 +2,6 @@ const withLess = require('next-with-less');
|
||||
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
||||
enabled: process.env.ANALYZE === 'true',
|
||||
});
|
||||
const DeadCodePlugin = require('webpack-deadcode-plugin');
|
||||
|
||||
const runtimeCaching = require('next-pwa/cache');
|
||||
|
||||
@ -17,6 +16,7 @@ const withPWA = require('next-pwa')({
|
||||
],
|
||||
register: true,
|
||||
skipWaiting: true,
|
||||
disableDevLogs: true,
|
||||
publicExcludes: ['!img/platformlogos/**/*', '!styles/admin/**/*'],
|
||||
buildExcludes: [/chunks\/pages\/admin.*/, '!**/admin/**/*'],
|
||||
sourcemap: process.env.NODE_ENV === 'development',
|
||||
@ -40,19 +40,6 @@ module.exports = withPWA(
|
||||
use: ['@svgr/webpack'],
|
||||
});
|
||||
|
||||
config.plugins.push(
|
||||
new DeadCodePlugin({
|
||||
detectUnusedFiles: false,
|
||||
patterns: ['**/*.(js|jsx|tsx|css)'],
|
||||
exclude: [
|
||||
'**/*.(stories|spec).(js|jsx|tsx)',
|
||||
'node_modules/**/*',
|
||||
'storybook-static/**/*',
|
||||
'out/**/*',
|
||||
],
|
||||
}),
|
||||
);
|
||||
|
||||
return config;
|
||||
},
|
||||
async rewrites() {
|
||||
|
||||
Reference in New Issue
Block a user