有一个新的 attr style-loader 中的选项允许您将自定义属性添加到 <script> 标签。我用它来添加 nonce 属性: { loader: 'style-loader', options: { attrs: { nonce: ...
確定! 回上一頁