There is no webpack.config.js file in dva, how to introduce plugins?

I need to introduce the plug-in "monaco-editor-webpack-plugin" here, because there is no webpack.config.js, I added in .uplohogrc.js, but it doesn"t seem to work.

const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin")

module.exports = {
  "entry": "src/index.js",
  "plugins": [
    new MonacoWebpackPlugin()
  ],
  // ...
}
Is

introduced in the wrong way?

Nov.25,2021
Menu