@pinnacle0/webpack-util 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -10
- package/src/Constant.d.ts +2 -2
- package/src/WebpackConfigGenerator/Plugin/script-tag-crossorigin-plugin.d.ts +1 -1
- package/src/WebpackConfigGenerator/Plugin/script-tag-crossorigin-plugin.js +1 -1
- package/src/WebpackConfigGenerator/Plugin/script-tag-crossorigin-plugin.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinnacle0/webpack-util",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"run-script": "ts-node --project config/tsconfig.script.json",
|
|
8
8
|
"build": "yarn run-script script/build.ts",
|
|
9
9
|
"format": "yarn run-script script/format.ts",
|
|
10
|
-
"test": "jest --config config/jest.config.
|
|
10
|
+
"test": "jest --config config/jest.config.ts"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@babel/core": "7.
|
|
14
|
-
"@pmmmwh/react-refresh-webpack-plugin": "0.5.
|
|
13
|
+
"@babel/core": "7.18.2",
|
|
14
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.5.7",
|
|
15
15
|
"autoprefixer": "10.4.7",
|
|
16
16
|
"babel-loader": "8.2.5",
|
|
17
17
|
"css-loader": "6.7.1",
|
|
18
|
-
"css-minimizer-webpack-plugin": "
|
|
18
|
+
"css-minimizer-webpack-plugin": "4.0.0",
|
|
19
19
|
"fs-extra": "10.1.0",
|
|
20
20
|
"html-webpack-plugin": "5.5.0",
|
|
21
21
|
"less": "4.1.2",
|
|
22
|
-
"less-loader": "
|
|
22
|
+
"less-loader": "11.0.0",
|
|
23
23
|
"mini-css-extract-plugin": "2.6.0",
|
|
24
|
-
"postcss": "8.4.
|
|
25
|
-
"postcss-loader": "
|
|
24
|
+
"postcss": "8.4.14",
|
|
25
|
+
"postcss-loader": "7.0.0",
|
|
26
26
|
"pretty-format": "28.1.0",
|
|
27
27
|
"react-refresh": "0.13.0",
|
|
28
28
|
"style-loader": "3.3.1",
|
|
29
29
|
"terser-webpack-plugin": "5.3.1",
|
|
30
30
|
"ts-loader": "9.3.0",
|
|
31
31
|
"webpack": "5.72.1",
|
|
32
|
-
"webpack-dev-server": "4.9.
|
|
32
|
+
"webpack-dev-server": "4.9.1",
|
|
33
33
|
"yargs": "17.5.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/html-webpack-plugin": "3.2.6",
|
|
38
|
-
"@types/script-ext-html-webpack-plugin": "2.1.3",
|
|
39
38
|
"@types/yargs": "17.0.10"
|
|
40
39
|
},
|
|
41
40
|
"engines": {
|
package/src/Constant.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ScriptTagCrossOriginPlugin = void 0;
|
|
7
7
|
const html_webpack_plugin_1 = __importDefault(require("html-webpack-plugin"));
|
|
8
8
|
const PLUGIN_NAME = "ScriptTagCrossOriginPlugin";
|
|
9
|
-
// This plugin
|
|
9
|
+
// This plugin adds crossorigin="anonymous" to html-webpack-plugin generated <script> tags, only work with html-webpack-plugin@4.0.0+
|
|
10
10
|
class ScriptTagCrossOriginPlugin {
|
|
11
11
|
apply(compiler) {
|
|
12
12
|
compiler.hooks.compilation.tap(PLUGIN_NAME, compilation => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script-tag-crossorigin-plugin.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Plugin/script-tag-crossorigin-plugin.ts"],"names":[],"mappings":";;;;;;AAAA,8EAAoD;AAGpD,MAAM,WAAW,GAAG,4BAA4B,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"script-tag-crossorigin-plugin.js","sourceRoot":"","sources":["../../../../src/WebpackConfigGenerator/Plugin/script-tag-crossorigin-plugin.ts"],"names":[],"mappings":";;;;;;AAAA,8EAAoD;AAGpD,MAAM,WAAW,GAAG,4BAA4B,CAAC;AAEjD,qIAAqI;AACrI,MAAa,0BAA0B;IACnC,KAAK,CAAC,QAA0B;QAC5B,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE;YACtD,MAAM,IAAI,GAAG,6BAAiB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,cAAc,CAAC;YACpE,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE;;gBAC3B,MAAM,EAAC,SAAS,EAAC,GAAG,MAAM,CAAC;gBAC3B,KAAK,MAAM,SAAS,IAAI,SAAS,CAAC,OAAO,EAAE;oBACvC,IAAI,CAAA,MAAA,SAAS,CAAC,UAAU,0CAAE,GAAG,KAAI,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,EAAE;wBAC/E,SAAS,CAAC,UAAU,CAAC,WAAW,GAAG,WAAW,CAAC;qBAClD;iBACJ;gBACD,OAAO,MAAM,CAAC;YAClB,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAfD,gEAeC"}
|