You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+135-7
Original file line number
Diff line number
Diff line change
@@ -540,7 +540,7 @@ module.exports = {
540
540
541
541
Insert styles at top of `head` tag.
542
542
543
-
You can pass any parameters to `style.use(anythingHere)` and this value will be passed to `insert`function. These options will be passed to `styleTagTransform`function too.
543
+
You can pass any parameters to `style.use(options)` and this value will be passed to `insert`and `styleTagTransform`functions.
544
544
545
545
**webpack.config.js**
546
546
@@ -554,8 +554,14 @@ module.exports = {
554
554
{
555
555
loader:"style-loader",
556
556
options: {
557
+
injectType:"lazyStyleTag",
558
+
// Do not forget that this code will be used in the browser and
559
+
// not all browsers support latest ECMA features like `let`, `const`, `arrow function expression` and etc,
560
+
// we recommend use only ECMA 5 features,
561
+
// but it is depends what browsers you want to support
0 commit comments