Ditch webpack-dev-middleware

This commit is contained in:
Cohee
2024-11-29 00:13:43 +02:00
parent b5c2ecdfcc
commit afccb8517a
5 changed files with 40 additions and 265 deletions

View File

@@ -8,6 +8,8 @@ export const publicLibConfig = {
cache: {
type: 'filesystem',
cacheDirectory: path.resolve(process.cwd(), 'dist/webpack'),
store: 'pack',
compression: 'gzip',
},
devtool: false,
watch: false,
@@ -16,6 +18,8 @@ export const publicLibConfig = {
preset: 'minimal',
assets: false,
modules: false,
colors: true,
timings: true,
},
experiments: {
outputModule: true,