webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false;
config.resolve.fallback.tls = false;
config.resolve.fallback.net = false;
config.resolve.fallback.child_process = false;
}
config.plugins.push(
new BrotliPlugin({
asset: "[path].br",
test: /\.(js|css|html|svg)$/,
threshold: 10240,
minRatio: 0.8,
})
);
return config;
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false;
config.resolve.fallback.tls = false;
config.resolve.fallback.net = false;
config.resolve.fallback.child_process = false;
}
config.plugins.push(
new BrotliPlugin({
asset: "[path].br",
test: /\.(js|css|html|svg)$/,
threshold: 10240,
minRatio: 0.8,
})
);
return config;
},