@elken/next-offline
Version:
<h1 align="center"> next-offline </h1>
18 lines (15 loc) • 382 B
JavaScript
module.exports = (nextConfig = {}) => {
return Object.assign({}, nextConfig, {
webpack (config, options) {
const newOptions = {
...options,
isServer: false,
dev: false
}
if (typeof nextConfig.webpack === 'function') {
return nextConfig.webpack(config, newOptions);
}
return config;
}
})
}