Skip to content

Commit 3dab79d

Browse files
committed
update comment
1 parent e3fb89f commit 3dab79d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/next/next-devtools.webpack-config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ module.exports = ({ dev, ...rest }) => {
9797
{
9898
loader: 'style-loader',
9999
options: {
100+
// Explicitly set the injectType to 'styleTag' which is also the default behavior.
101+
// We've experienced `singletonStyleTag` that the later updated styles not being applied.
102+
// Keep using `styleTag` to ensure when new styles injected the style can also be updated.
100103
injectType: 'styleTag',
101104
insert: require.resolve(
102105
'./src/build/webpack/loaders/devtool/devtool-style-inject.js'

0 commit comments

Comments
 (0)