File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export async function cssInContentScriptLoader(
99) {
1010 const manifestPath = path . join ( projectPath , 'manifest.json' )
1111
12- return {
12+ return [ {
1313 test : / \. c s s $ / ,
1414 type : 'asset' ,
1515 generator : {
@@ -21,5 +21,5 @@ export async function cssInContentScriptLoader(
2121 use : await commonStyleLoaders ( projectPath , {
2222 mode : mode as 'development' | 'production'
2323 } )
24- }
24+ } ]
2525}
Original file line number Diff line number Diff line change @@ -50,9 +50,8 @@ export default function webpackConfig(
5050
5151 const cleanConfig = devOptions . output ?. clean
5252 ? devOptions . output . clean
53- : {
54- keep : devOptions . mode === 'development' ? 'hot' : undefined
55- }
53+ // Keep hot updates for content scripts in development mode
54+ : devOptions . mode === 'development'
5655
5756 return {
5857 mode : devOptions . mode || 'development' ,
You can’t perform that action at this time.
0 commit comments