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
<!-- 'inline-bundle' attribute tell us to embed file that generated by webpack -->
75
-
<script>(window.webpackJsonp=window.webpackJsonp||[]).push([["bundle"],[,function(i,e){console.log("This file is build by webpack.But InlineSourceWebpackPlugin will embed it into html file.")}],[[1,"runtime"]]]);</script>
-`rootpath`: path used for resolving inlineable paths.
55
+
-`noAssetMatchReplace`: work with `noAssetMatch` option.(default `<!-- -->`)
56
+
-`noAssetMatch`: define the behaviour while no asset match the value of `inline-asset` attribute.(default `1`)
57
+
-`0`: do nothing and the tag is still reserved in the html.
58
+
-`1`: throw warning tips and replace the tag with the content of `noAssetMatchReplace` option.
59
+
-`2`: throw error tips and replace the tag with the content of `noAssetMatchReplace` option(This level will affect the compilation of webpack).
86
60
87
61
```javascript
88
62
// webpack.config.js
@@ -103,14 +77,14 @@ module.exports = {
103
77
};
104
78
```
105
79
106
-
If you want to embed the files that generated by webpack or other plugin, you can use `inline-bundle` attribute to filter the files(Please don't try to use `src` or `href`).
107
-
Add `inline-bundle-delete` attribute for deleting the bundle after inline task.
80
+
If you want to embed the files that generated by webpack or other plugin, you can use `inline-asset` attribute to filter the files(Please don't try to use `src` or `href`).
81
+
Add `inline-asset-delete` attribute for deleting the asset after inline task.
0 commit comments