@wepublish/editor
Version:
We.publish CMS Editor
16 lines (14 loc) • 611 B
JavaScript
const {composePlugins, withNx} = require('@nx/webpack')
const {withReact} = require('@nx/react')
// Nx plugins for webpack.
module.exports = composePlugins(withNx(), withReact(), (config, {options, context}) => {
// Update the webpack config as needed here.
// e.g. config.plugins.push(new MyPlugin())
// For more information on webpack config and Nx see:
// https://nx.dev/packages/webpack/documents/webpack-config-setup
// check if config.devServer is defined (it's undefined on prod build)
if (config.devServer) {
config.devServer.client.overlay.runtimeErrors = false
}
return config
})