Chrome extension compiled by Webpack throws `unsafe-eval` error

后端 未结 5 1140
梦如初夏
梦如初夏 2020-12-08 10:16

I get this error when reloading my Chrome Extension after compiling using Webpack:

Uncaught EvalError: Refused to evaluate a string as JavaScript because \'un         


        
5条回答
  •  有刺的猬
    2020-12-08 11:02

    Thanks for the answer from @Randy. However, For Vue CLI generated vue project, there's no webpack.config.js, so the solution will be adding the following config into vue.config.js:

      configureWebpack: {
        devtool: 'cheap-module-source-map'
      }
    

提交回复
热议问题