@mrpelz/boilerplate-dom 10.0.0 → 10.1.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/package.json +2 -1
- package/scripts/bootstrap.sh +3 -1
- package/tsconfig.build.json +8 -0
- package/tsconfig.json +1 -0
- package/tsconfig.meta.json +0 -4
- package/webpack.config.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrpelz/boilerplate-dom",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mrpelz/boilerplate.git",
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"Makefile",
|
|
24
24
|
"scripts/**/*.sh",
|
|
25
25
|
"stylelint.config.js",
|
|
26
|
+
"tsconfig.build.json",
|
|
26
27
|
"tsconfig.json",
|
|
27
28
|
"tsconfig.meta.json",
|
|
28
29
|
"webpack.config.js"
|
package/scripts/bootstrap.sh
CHANGED
package/tsconfig.json
CHANGED
package/tsconfig.meta.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import path from 'node:path';
|
|
2
2
|
|
|
3
3
|
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
|
|
4
4
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
@@ -6,9 +6,9 @@ import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
|
6
6
|
|
|
7
7
|
export const dirBase = process.cwd();
|
|
8
8
|
|
|
9
|
-
export const dirDist = resolve(dirBase, 'dist');
|
|
10
|
-
export const dirSrc = resolve(dirBase, 'src');
|
|
11
|
-
export const dirStatic = resolve(dirBase, 'static');
|
|
9
|
+
export const dirDist = path.resolve(dirBase, 'dist');
|
|
10
|
+
export const dirSrc = path.resolve(dirBase, 'src');
|
|
11
|
+
export const dirStatic = path.resolve(dirBase, 'static');
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @typedef ConfigurationExtended
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
],
|
|
32
32
|
},
|
|
33
33
|
devtool: 'nosources-source-map',
|
|
34
|
-
entry: [resolve(dirSrc, 'main.ts'), resolve(dirSrc, 'main.css')],
|
|
34
|
+
entry: [path.resolve(dirSrc, 'main.ts'), path.resolve(dirSrc, 'main.css')],
|
|
35
35
|
mode: 'production',
|
|
36
36
|
module: {
|
|
37
37
|
rules: [
|
|
@@ -42,7 +42,7 @@ export default {
|
|
|
42
42
|
{
|
|
43
43
|
loader: 'ts-loader',
|
|
44
44
|
options: {
|
|
45
|
-
configFile: resolve(dirBase, 'tsconfig.build.json'),
|
|
45
|
+
configFile: path.resolve(dirBase, 'tsconfig.build.json'),
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
],
|