@digest/webpack 4.9.0-next.1 → 4.9.1

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/README.md CHANGED
@@ -1,32 +1,32 @@
1
1
  <div align="center">
2
- <img alt="Digest Crane" src="https://gitlab.com/digested/node-digest/raw/master/packages/webpack/share/favicon.png" />
2
+ <img alt="Digest Crane" src="https://gitlab.com/digested/node-digest/raw/master/packages/webpack/share/favicon.png" />
3
3
  </div><br>
4
4
 
5
5
  <div align="center">
6
- <h1>@digest/webpack</h1>
6
+ <h1>@digest/webpack</h1>
7
7
  </div>
8
8
 
9
9
  <div align="center">
10
- <a href="https://commitizen.github.io/cz-cli/"><img alt="Commitizen Friendly" src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?maxAge=2592000" /></a>
11
- <a href="https://github.com/semantic-release/semantic-release"><img alt="Semantic Release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?maxAge=2592000" /></a>
10
+ <a href="https://commitizen.github.io/cz-cli/"><img alt="Commitizen Friendly" src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?maxAge=2592000" /></a>
11
+ <a href="https://github.com/semantic-release/semantic-release"><img alt="Semantic Release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?maxAge=2592000" /></a>
12
12
  </div>
13
13
 
14
14
  <div align="center">
15
- <a href="https://gitlab.com/digested/node-digest/-/commits/master" target="_blank">
16
- <img alt="Status" aria-hidden="" src="https://gitlab.com/digested/node-digest/badges/master/pipeline.svg">
17
- </a>
18
- <a href="https://digested.gitlab.io/node-digest/coverage">
19
- <img alt="Coverage Report" src="https://gitlab.com/digested/node-digest/badges/master/coverage.svg" />
20
- </a>
21
- <a href="https://www.npmjs.org/package/@digest/webpack">
22
- <img alt="NPM Version" src="http://img.shields.io/npm/v/&#64;digest/webpack.svg?maxAge=86400" />
23
- </a>
24
- <a href="https://www.gnu.org/licenses/lgpl-3.0.en.html">
25
- <img alt="License LGPL 3.0 or later" src="https://img.shields.io/npm/l/&#64;digest/webpack.svg?maxAge=2592000" />
26
- </a>
27
- <a href="https://github.com/gajus/eslint-config-canonical">
28
- <img alt="Code Style Canonical" src="https://img.shields.io/badge/code%20style-canonical-blue.svg?maxAge=2592000" />
29
- </a>
15
+ <a href="https://gitlab.com/digested/node-digest/-/commits/master" target="_blank">
16
+ <img alt="Status" aria-hidden="" src="https://gitlab.com/digested/node-digest/badges/master/pipeline.svg">
17
+ </a>
18
+ <a href="https://digested.gitlab.io/node-digest/coverage">
19
+ <img alt="Coverage Report" src="https://gitlab.com/digested/node-digest/badges/master/coverage.svg" />
20
+ </a>
21
+ <a href="https://www.npmjs.org/package/@digest/webpack">
22
+ <img alt="NPM Version" src="http://img.shields.io/npm/v/&#64;digest/webpack.svg?maxAge=86400" />
23
+ </a>
24
+ <a href="https://www.gnu.org/licenses/lgpl-3.0.en.html">
25
+ <img alt="License LGPL 3.0 or later" src="https://img.shields.io/npm/l/&#64;digest/webpack.svg?maxAge=2592000" />
26
+ </a>
27
+ <a href="https://github.com/gajus/eslint-config-canonical">
28
+ <img alt="Code Style Canonical" src="https://img.shields.io/badge/code%20style-canonical-blue.svg?maxAge=2592000" />
29
+ </a>
30
30
  </div>
31
31
  <br />
32
32
  <br />
@@ -1 +1,6 @@
1
- export {};
1
+ import type configuration from './webpack.config';
2
+ type Loader = typeof configuration.loader;
3
+ declare const scriptLoaders: (options?: {
4
+ typescript?: boolean;
5
+ }) => Loader[];
6
+ export default scriptLoaders;
@@ -3,15 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const threadLoader_1 = __importDefault(require("./threadLoader"));
6
7
  const scripts_1 = require("@digest/scripts");
7
8
  const node_path_1 = __importDefault(require("node:path"));
8
- const threadLoader = require('./threadLoader');
9
- const configuration = require('./webpack.config');
10
9
  const { cache } = scripts_1.config;
11
10
  const scriptLoaders = (options = {}) => {
12
11
  return [].concat(scripts_1.config.parallel ?
13
12
  [
14
- threadLoader
13
+ threadLoader_1.default
15
14
  ] :
16
15
  [], scripts_1.config.babel &&
17
16
  scripts_1.config.webpackBabel ?
@@ -45,4 +44,4 @@ const scriptLoaders = (options = {}) => {
45
44
  }
46
45
  ]);
47
46
  };
48
- module.exports = scriptLoaders;
47
+ exports.default = scriptLoaders;
@@ -1 +1,11 @@
1
- export {};
1
+ import type configuration from './webpack.config';
2
+ type Loader = typeof configuration.loader;
3
+ declare const styleLoaders: (options?: {
4
+ camelCase?: boolean;
5
+ minimize?: boolean;
6
+ modules?: boolean;
7
+ postcss?: boolean;
8
+ production?: boolean;
9
+ sourceMap?: boolean;
10
+ }) => Loader[];
11
+ export default styleLoaders;
@@ -3,10 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const threadLoader_1 = __importDefault(require("./threadLoader"));
6
7
  const scripts_1 = require("@digest/scripts");
7
8
  const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
8
- const threadLoader = require('./threadLoader');
9
- const configuration = require('./webpack.config');
10
9
  const styleLoaders = (options = {}) => {
11
10
  options.camelCase = options.camelCase === undefined ?
12
11
  true :
@@ -21,7 +20,7 @@ const styleLoaders = (options = {}) => {
21
20
  }
22
21
  ] :
23
22
  [
24
- threadLoader,
23
+ threadLoader_1.default,
25
24
  {
26
25
  loader: 'style-loader'
27
26
  }
@@ -58,4 +57,4 @@ const styleLoaders = (options = {}) => {
58
57
  ] :
59
58
  []);
60
59
  };
61
- module.exports = styleLoaders;
60
+ exports.default = styleLoaders;
@@ -1 +1,7 @@
1
- export {};
1
+ declare const threadLoader: {
2
+ loader: string;
3
+ options: {
4
+ workers: number;
5
+ };
6
+ };
7
+ export default threadLoader;
@@ -13,4 +13,4 @@ const threadLoader = {
13
13
  workers
14
14
  }
15
15
  };
16
- module.exports = threadLoader;
16
+ exports.default = threadLoader;
@@ -1 +1,3 @@
1
- export {};
1
+ import { type Configuration } from 'webpack';
2
+ declare const configuration: Configuration;
3
+ export default configuration;
@@ -4,6 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  var _a, _b;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ const scriptLoaders_1 = __importDefault(require("./scriptLoaders"));
8
+ const styleLoaders_1 = __importDefault(require("./styleLoaders"));
7
9
  const scripts_1 = require("@digest/scripts");
8
10
  const preload_webpack_plugin_1 = __importDefault(require("@vue/preload-webpack-plugin"));
9
11
  const case_sensitive_paths_webpack_plugin_1 = __importDefault(require("case-sensitive-paths-webpack-plugin"));
@@ -25,8 +27,6 @@ const webpack_bundle_analyzer_1 = require("webpack-bundle-analyzer");
25
27
  const webpack_favicons_1 = __importDefault(require("webpack-favicons"));
26
28
  const webpack_node_externals_1 = __importDefault(require("webpack-node-externals"));
27
29
  const webpack_subresource_integrity_1 = require("webpack-subresource-integrity");
28
- const scriptLoaders = require('./scriptLoaders');
29
- const styleLoaders = require('./styleLoaders');
30
30
  const { cache } = scripts_1.config;
31
31
  let GenerateSW;
32
32
  let WorkboxEntry;
@@ -190,7 +190,7 @@ const configuration = {
190
190
  {
191
191
  exclude: new RegExp(`\.g\.css$|\.min\.css$|node_modules\/(?!.*(${scripts_1.config.postcssWhitelist})).*\.css$`, 'u'),
192
192
  test: /\.css$/u,
193
- use: styleLoaders({
193
+ use: (0, styleLoaders_1.default)({
194
194
  minimize: scripts_1.config.minimize && scripts_1.production,
195
195
  modules: scripts_1.config.cssModules,
196
196
  postcss: Boolean(scripts_1.config.postcss &&
@@ -201,7 +201,7 @@ const configuration = {
201
201
  {
202
202
  exclude: new RegExp(`\.min\.css$|node_modules\/(?!.*(${scripts_1.config.postcssWhitelist})).*\.css$`, 'u'),
203
203
  test: /\.g\.css$/u,
204
- use: styleLoaders({
204
+ use: (0, styleLoaders_1.default)({
205
205
  minimize: scripts_1.config.minimize && scripts_1.production,
206
206
  postcss: Boolean(scripts_1.config.postcss &&
207
207
  scripts_1.config.webpackPostCSS),
@@ -210,7 +210,7 @@ const configuration = {
210
210
  },
211
211
  {
212
212
  test: new RegExp(`\.min\.css$|node_modules\/(?!.*(${scripts_1.config.postcssWhitelist})).*\.css$`, 'u'),
213
- use: styleLoaders({
213
+ use: (0, styleLoaders_1.default)({
214
214
  camelCase: false,
215
215
  minimize: false
216
216
  })
@@ -218,12 +218,12 @@ const configuration = {
218
218
  {
219
219
  exclude: /(node_modules|lib|dist)[\\/]/u,
220
220
  test: /\.js$/u,
221
- use: scriptLoaders()
221
+ use: (0, scriptLoaders_1.default)()
222
222
  },
223
223
  {
224
224
  exclude: /(node_modules|lib|dist)[\\/]/u,
225
225
  test: /\.mjs$/u,
226
- use: scriptLoaders()
226
+ use: (0, scriptLoaders_1.default)()
227
227
  }
228
228
  ], scripts_1.config.react &&
229
229
  scripts_1.config.webpackReact ?
@@ -231,7 +231,7 @@ const configuration = {
231
231
  {
232
232
  exclude: /(node_modules|lib|dist)[\\/]/u,
233
233
  test: /\.jsx$/u,
234
- use: scriptLoaders()
234
+ use: (0, scriptLoaders_1.default)()
235
235
  }
236
236
  ] :
237
237
  [], scripts_1.config.typescript &&
@@ -240,7 +240,7 @@ const configuration = {
240
240
  {
241
241
  exclude: /(node_modules|lib|dist)[\\/]/u,
242
242
  test: /\.ts$/u,
243
- use: scriptLoaders({
243
+ use: (0, scriptLoaders_1.default)({
244
244
  typescript: true
245
245
  })
246
246
  }
@@ -253,7 +253,7 @@ const configuration = {
253
253
  {
254
254
  exclude: /(node_modules|lib|dist)[\\/]/u,
255
255
  test: /\.tsx$/u,
256
- use: scriptLoaders({
256
+ use: (0, scriptLoaders_1.default)({
257
257
  typescript: true
258
258
  })
259
259
  }
@@ -614,3 +614,4 @@ const configuration = {
614
614
  ]
615
615
  };
616
616
  module.exports = configuration;
617
+ exports.default = configuration;
package/package.json CHANGED
@@ -1,97 +1,97 @@
1
1
  {
2
- "name": "@digest/webpack",
3
- "title": "Webpack Digest",
4
- "license": "LGPL-3.0-or-later",
5
- "version": "4.9.0-next.1",
6
- "description": "Digested Webpack Configurations",
7
- "author": {
8
- "name": "wallzero @wallzeroblog",
9
- "url": "http://wallzero.com"
10
- },
11
- "contributors": [
12
- {
13
- "name": "Connor Schlesiger",
14
- "email": "connor@schlesiger.ca",
15
- "position": "Initial and Lead Developer"
16
- }
17
- ],
18
- "homepage": "https://gitlab.com/digested/node-digest/tree/master/packages/webpack",
19
- "repository": {
20
- "type": "git",
21
- "url": "https://gitlab.com/digested/node-digest.git"
22
- },
23
- "bugs": {
24
- "url": "https://gitlab.com/digested/node-digest/issues"
25
- },
26
- "main": "dist/webpack.config.js",
27
- "types": "dist/webpack.config.d.ts",
28
- "files": [
29
- "/dist/scriptLoaders.d.ts",
30
- "/dist/scriptLoaders.js",
31
- "/dist/styleLoaders.d.ts",
32
- "/dist/styleLoaders.js",
33
- "/dist/threadLoader.d.ts",
34
- "/dist/threadLoader.js",
35
- "/dist/webpack.config.d.ts",
36
- "/dist/webpack.config.js",
37
- "/share/favicon.png",
38
- "/share/index.htm",
39
- "COPYING.md",
40
- "COPYING.LESSER.md"
41
- ],
42
- "scripts": {
43
- "build": "tsc",
44
- "build:watch": "tsc --watch --pretty --preserveWatchOutput",
45
- "lint": "run-p lint:es",
46
- "lint:es": "eslint 'src/**/*.[jt]s?(x)' --ignore-pattern 'src/**/*.(d.ts|json)'",
47
- "clean": "rimraf node_modules dist package-lock.json npm-debug.log"
48
- },
49
- "dependencies": {
50
- "@digest/scripts": "^4.0.0",
51
- "@swc/core": "^1.8.0",
52
- "@vue/preload-webpack-plugin": "^2.0.0",
53
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
54
- "circular-dependency-plugin": "^5.2.2",
55
- "clean-terminal-webpack-plugin": "^3.0.0",
56
- "clean-webpack-plugin": "4.0.0",
57
- "compression-webpack-plugin": "^11.1.0",
58
- "css-loader": "^7.1.2",
59
- "css-minimizer-webpack-plugin": "^7.0.0",
60
- "duplicate-package-checker-webpack-plugin": "^3.0.0",
61
- "html-loader": "^5.1.0",
62
- "html-webpack-harddisk-plugin": "^2.0.0",
63
- "html-webpack-link-type-plugin": "^1.1.1",
64
- "html-webpack-plugin": "^5.6.3",
65
- "identity-obj-proxy": "^3.0.0",
66
- "mini-css-extract-plugin": "^2.9.2",
67
- "raw-loader": "^4.0.2",
68
- "source-map-loader": "^5.0.0",
69
- "stats-webpack-plugin": "~0.7.0",
70
- "style-loader": "^3.3.4",
71
- "terser-webpack-plugin": "^5.3.10",
72
- "thread-loader": "^4.0.4",
73
- "url-loader": "^4.1.1",
74
- "webpack": "^5.96.1",
75
- "webpack-bundle-analyzer": "^4.10.2",
76
- "webpack-cli": "^5.1.4",
77
- "webpack-favicons": "^1.5.4",
78
- "webpack-node-externals": "^3.0.0",
79
- "webpack-subresource-integrity": "^5.2.0-rc.1"
80
- },
81
- "devDependencies": {
82
- "@digest/webpack-workbox": "^4.0.0",
83
- "@types/clean-webpack-plugin": "^2.0.2",
84
- "@types/ip": "^1.1.3",
85
- "@types/mini-css-extract-plugin": "^2.5.1",
86
- "@types/node": "^22.9.0",
87
- "@types/terser-webpack-plugin": "^5.2.0",
88
- "@types/webpack-bundle-analyzer": "^4.7.0",
89
- "@types/webpack-env": "^1.18.5"
90
- },
91
- "keywords": [
92
- "webpack",
93
- "build",
94
- "hmr"
95
- ],
96
- "gitHead": "b688a4c51cca87f2d45d389717dd3e879fcde057"
2
+ "name": "@digest/webpack",
3
+ "title": "Webpack Digest",
4
+ "license": "LGPL-3.0-or-later",
5
+ "version": "4.9.1",
6
+ "description": "Digested Webpack Configurations",
7
+ "author": {
8
+ "name": "wallzero @wallzeroblog",
9
+ "url": "http://wallzero.com"
10
+ },
11
+ "contributors": [
12
+ {
13
+ "name": "Connor Schlesiger",
14
+ "email": "connor@schlesiger.ca",
15
+ "position": "Initial and Lead Developer"
16
+ }
17
+ ],
18
+ "homepage": "https://gitlab.com/digested/node-digest/tree/master/packages/webpack",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://gitlab.com/digested/node-digest.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://gitlab.com/digested/node-digest/issues"
25
+ },
26
+ "main": "dist/webpack.config.js",
27
+ "types": "dist/webpack.config.d.ts",
28
+ "files": [
29
+ "/dist/scriptLoaders.d.ts",
30
+ "/dist/scriptLoaders.js",
31
+ "/dist/styleLoaders.d.ts",
32
+ "/dist/styleLoaders.js",
33
+ "/dist/threadLoader.d.ts",
34
+ "/dist/threadLoader.js",
35
+ "/dist/webpack.config.d.ts",
36
+ "/dist/webpack.config.js",
37
+ "/share/favicon.png",
38
+ "/share/index.htm",
39
+ "COPYING.md",
40
+ "COPYING.LESSER.md"
41
+ ],
42
+ "scripts": {
43
+ "build": "tsc",
44
+ "build:watch": "tsc --watch --pretty --preserveWatchOutput",
45
+ "lint": "run-p lint:es",
46
+ "lint:es": "eslint",
47
+ "clean": "rimraf node_modules dist package-lock.json npm-debug.log"
48
+ },
49
+ "dependencies": {
50
+ "@digest/scripts": "^4.0.0",
51
+ "@swc/core": "^1.9.2",
52
+ "@vue/preload-webpack-plugin": "^2.0.0",
53
+ "case-sensitive-paths-webpack-plugin": "^2.4.0",
54
+ "circular-dependency-plugin": "^5.2.2",
55
+ "clean-terminal-webpack-plugin": "^3.0.0",
56
+ "clean-webpack-plugin": "4.0.0",
57
+ "compression-webpack-plugin": "^11.1.0",
58
+ "css-loader": "^7.1.2",
59
+ "css-minimizer-webpack-plugin": "^7.0.0",
60
+ "duplicate-package-checker-webpack-plugin": "^3.0.0",
61
+ "html-loader": "^5.1.0",
62
+ "html-webpack-harddisk-plugin": "^2.0.0",
63
+ "html-webpack-link-type-plugin": "^1.1.1",
64
+ "html-webpack-plugin": "^5.6.3",
65
+ "identity-obj-proxy": "^3.0.0",
66
+ "mini-css-extract-plugin": "^2.9.2",
67
+ "raw-loader": "^4.0.2",
68
+ "source-map-loader": "^5.0.0",
69
+ "stats-webpack-plugin": "~0.7.0",
70
+ "style-loader": "^3.3.4",
71
+ "terser-webpack-plugin": "^5.3.10",
72
+ "thread-loader": "^4.0.4",
73
+ "url-loader": "^4.1.1",
74
+ "webpack": "^5.96.1",
75
+ "webpack-bundle-analyzer": "^4.10.2",
76
+ "webpack-cli": "^5.1.4",
77
+ "webpack-favicons": "^1.5.4",
78
+ "webpack-node-externals": "^3.0.0",
79
+ "webpack-subresource-integrity": "^5.2.0-rc.1"
80
+ },
81
+ "devDependencies": {
82
+ "@digest/webpack-workbox": "^4.0.0",
83
+ "@types/clean-webpack-plugin": "^2.0.2",
84
+ "@types/ip": "^1.1.3",
85
+ "@types/mini-css-extract-plugin": "^2.5.1",
86
+ "@types/node": "^22.9.0",
87
+ "@types/terser-webpack-plugin": "^5.2.0",
88
+ "@types/webpack-bundle-analyzer": "^4.7.0",
89
+ "@types/webpack-env": "^1.18.5"
90
+ },
91
+ "keywords": [
92
+ "webpack",
93
+ "build",
94
+ "hmr"
95
+ ],
96
+ "gitHead": "398df78c965747e91231f8ecf6635331b03484af"
97
97
  }
package/share/index.htm CHANGED
@@ -1,13 +1,13 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
- <head>
4
- <meta charset="UTF-8">
5
- <base href="<%= htmlWebpackPlugin.options.baseHref %>" target="_blank">
6
- <meta name="viewport" content="initial-scale=1, maximum-scale=5">
7
- <meta http-equiv="X-UA-compatible" content="IE=Edge">
8
- <title><%= htmlWebpackPlugin.options.title %></title>
9
- </head>
10
- <body>
11
- <div id="app"></div>
12
- </body>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <base href="<%= htmlWebpackPlugin.options.baseHref %>" target="_blank">
6
+ <meta name="viewport" content="initial-scale=1, maximum-scale=5">
7
+ <meta http-equiv="X-UA-compatible" content="IE=Edge">
8
+ <title><%= htmlWebpackPlugin.options.title %></title>
9
+ </head>
10
+ <body>
11
+ <div id="app"></div>
12
+ </body>
13
13
  </html>