How can i use webpack in twitch Extensions

I use webpack to build a twitch Extensions. It run well at localhost. however,when I upload it to twitch server,and run at Hosted Test,chrome warn me :"Refused to evaluate a string as JavaScript because ‘unsafe-eval’ is not an allowed source of script in the following Content Security Policy directive: “script-src ‘self’”.what should I do to resolve it.

I searched the forums for you

May help

thank for answer,but my problem is my Extension dosen’t work becouse of ‘unsafe-eval’ is not an allowed source of script,not pushed back from review.

Has your webpack been built manually or with the create react app?

I use vue-cli,and change some config option myself

I understand, it should be the new webpack, look for some configuration that is with the INLINE_RUNTIME_CHUNK=true switch to false does he use the terser plugin?

no no,I use vue-cli2.0 an webpack3 ,not the last webpack

Okay just catching up…

I use Vue on my extensions and have no issue. The error you have is that there is an eval somewhere so I would be looking at maybe one for the npm packages you are importing.

thank, I found that is because I haven’t run npm build.after I run npm build,my Extensions run.