@serwist/webpack-plugin 8.0.0

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.
@@ -0,0 +1,12 @@
1
+ import type { Compilation } from "webpack";
2
+ /**
3
+ * @param compilation The webpack compilation.
4
+ * @param swDest The original swDest value.
5
+ *
6
+ * @returns If swDest was not absolute, the returns swDest as-is.
7
+ * Otherwise, returns swDest relative to the compilation's output path.
8
+ *
9
+ * @private
10
+ */
11
+ export declare function relativeToOutputPath(compilation: Compilation, swDest: string): string;
12
+ //# sourceMappingURL=relative-to-output-path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relative-to-output-path.d.ts","sourceRoot":"","sources":["../../src/lib/relative-to-output-path.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAQrF"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Resolves a url in the way that webpack would (with string concatenation)
3
+ *
4
+ * Use publicPath + filePath instead of url.resolve(publicPath, filePath) see:
5
+ * https://webpack.js.org/configuration/output/#output-publicpath
6
+ *
7
+ * @param publicPath The publicPath value from webpack's compilation.
8
+ * @param paths File paths to join
9
+ * @returns Joined file path
10
+ * @private
11
+ */
12
+ export declare function resolveWebpackURL(publicPath: string, ...paths: Array<string>): string;
13
+ //# sourceMappingURL=resolve-webpack-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-webpack-url.d.ts","sourceRoot":"","sources":["../../src/lib/resolve-webpack-url.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAQrF"}
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@serwist/webpack-plugin",
3
+ "version": "8.0.0",
4
+ "type": "module",
5
+ "description": "A plugin for your Webpack build process, helping you generate a manifest of local files that should be precached.",
6
+ "files": [
7
+ "dist",
8
+ "!dist/**/dts"
9
+ ],
10
+ "keywords": [
11
+ "serwist",
12
+ "serwistjs",
13
+ "webpack",
14
+ "service worker",
15
+ "caching",
16
+ "fetch requests",
17
+ "offline",
18
+ "file manifest"
19
+ ],
20
+ "engines": {
21
+ "node": ">=16.0.0"
22
+ },
23
+ "author": "Google's Web DevRel Team, Serwist's Team",
24
+ "license": "MIT",
25
+ "repository": "serwist/serwist",
26
+ "bugs": "https://github.com/serwist/serwist/issues",
27
+ "homepage": "https://ducanh-next-pwa.vercel.app",
28
+ "module": "./dist/index.js",
29
+ "main": "./dist/index.old.cjs",
30
+ "types": "./dist/index.d.ts",
31
+ "typesVersions": {
32
+ "*": {
33
+ "internal": [
34
+ "./dist/index.internal.d.ts"
35
+ ]
36
+ }
37
+ },
38
+ "exports": {
39
+ ".": {
40
+ "import": "./dist/index.js",
41
+ "require": "./dist/index.old.cjs",
42
+ "types": "./dist/index.d.ts"
43
+ },
44
+ "./internal": {
45
+ "import": "./dist/index.internal.js",
46
+ "require": "./dist/index.internal.old.cjs",
47
+ "types": "./dist/index.internal.d.ts"
48
+ },
49
+ "./package.json": "./package.json"
50
+ },
51
+ "dependencies": {
52
+ "fast-json-stable-stringify": "2.1.0",
53
+ "picomatch": "3.0.1",
54
+ "pretty-bytes": "6.1.1",
55
+ "rollup": "3.28.1",
56
+ "upath": "2.0.1",
57
+ "webpack-sources": "3.2.3",
58
+ "@serwist/build": "8.0.0"
59
+ },
60
+ "peerDependencies": {
61
+ "webpack": "4.4.0 || ^5.9.0"
62
+ },
63
+ "devDependencies": {
64
+ "@types/node": "20.8.7",
65
+ "@types/webpack": "5.28.3",
66
+ "@serwist/constants": "8.0.0"
67
+ },
68
+ "scripts": {
69
+ "build": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js",
70
+ "lint": "eslint src --ext ts,tsx,js,jsx,cjs,mjs",
71
+ "typecheck": "tsc"
72
+ }
73
+ }