Skip to content

Commit

Permalink
Fix ChatGPT extension not working
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Aug 19, 2024
1 parent b997af2 commit 46b1201
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions programs/develop/webpack/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function devServer(
host: '127.0.0.1',
allowedHosts: 'all',
static: path.join(projectPath, 'public'),
compress: true,
compress: false,
devMiddleware: {
writeToDisk: true
},
Expand All @@ -61,7 +61,7 @@ export async function devServer(
// Shows a full-screen overlay in the browser
// when there are compiler errors or warnings.
overlay: false
},
},
headers: {
'Access-Control-Allow-Origin': '*'
},
Expand Down
2 changes: 2 additions & 0 deletions programs/develop/webpack/plugin-js-frameworks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export class JsFrameworksPlugin {
},
transform: {
react: {
development: this.mode === 'development',
refresh: this.mode === 'development',
runtime: 'automatic',
importSource: 'react'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ export async function maybeUseReact(
}

const reactPlugins: WebpackPluginInstance[] = [
new (require('@pmmmwh/react-refresh-webpack-plugin'))()
new (require('@pmmmwh/react-refresh-webpack-plugin'))({
overlay: false
})
]

return {
Expand Down

0 comments on commit 46b1201

Please sign in to comment.