🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@darcytech/html-webpack-cross-origin-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@darcytech/html-webpack-cross-origin-plugin

构建时往 script 和 link 标签注入 crossOrigin属性

latest
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

@darcytech/html-webpack-cross-origin-plugin

html-webpack-cross-origin-plugin 是一款扩展至 html-webpack-plugin 的插件, 作用是在构建时往生成的 script 和 link 标签注入 crossOrigin 属性。

Usage

入参:'anonymous' | 'use-credentials'

const HtmlWebpackCrossOriginPlugin = require('@darcytech/html-webpack-cross-origin-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');

{
  plugins: [new HtmlWebpackPlugin(), new HtmlWebpackCrossOriginPlugin('anonymous')];
}

Keywords

webpack

FAQs

Package last updated on 28 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts