5htp 0.6.2-95 → 0.6.2-97
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/compiler/client/index.ts
CHANGED
|
@@ -37,7 +37,7 @@ const debug = false;
|
|
|
37
37
|
export default function createCompiler( app: App, mode: TCompileMode ): webpack.Configuration {
|
|
38
38
|
|
|
39
39
|
console.info(`Creating compiler for client (${mode}).`);
|
|
40
|
-
const dev = mode === 'dev';
|
|
40
|
+
const dev = true;//mode === 'dev';
|
|
41
41
|
|
|
42
42
|
const commonConfig = createCommonConfig(app, 'client', mode);
|
|
43
43
|
|
|
@@ -126,7 +126,7 @@ export default function createCompiler( app: App, mode: TCompileMode ): webpack.
|
|
|
126
126
|
// On ne compile les ressources (css) qu'une seule fois
|
|
127
127
|
{
|
|
128
128
|
test: regex.style,
|
|
129
|
-
rules: require('../common/files/style')(app,
|
|
129
|
+
rules: require('../common/files/style')(app, dev, true),
|
|
130
130
|
|
|
131
131
|
// Don't consider CSS imports dead code even if the
|
|
132
132
|
// containing package claims to have no side effects.
|
|
@@ -331,4 +331,4 @@ export default function createCompiler( app: App, mode: TCompileMode ): webpack.
|
|
|
331
331
|
};
|
|
332
332
|
|
|
333
333
|
return config;
|
|
334
|
-
};
|
|
334
|
+
};
|
|
@@ -38,8 +38,15 @@ module.exports = (app: App, dev: Boolean, client: boolean) => {
|
|
|
38
38
|
options: {
|
|
39
39
|
postcssOptions: {
|
|
40
40
|
plugins: [
|
|
41
|
-
/* Tailwind V4
|
|
42
|
-
|
|
41
|
+
/* Tailwind V4 */require('@tailwindcss/postcss')({
|
|
42
|
+
// Ensure Tailwind scans the application sources even if the build
|
|
43
|
+
// process is launched from another working directory (e.g. Docker).
|
|
44
|
+
base: app.paths.root,
|
|
45
|
+
|
|
46
|
+
// Avoid double-minifying: Webpack already runs CssMinimizerPlugin in prod.
|
|
47
|
+
optimize: false,
|
|
48
|
+
}),
|
|
49
|
+
///* Tailwind V3 */require('tailwindcss'),
|
|
43
50
|
require('autoprefixer'),
|
|
44
51
|
],
|
|
45
52
|
},
|
|
@@ -68,4 +75,4 @@ module.exports = (app: App, dev: Boolean, client: boolean) => {
|
|
|
68
75
|
}*/
|
|
69
76
|
]
|
|
70
77
|
|
|
71
|
-
}
|
|
78
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5htp",
|
|
3
3
|
"description": "Convenient TypeScript framework designed for Performance and Productivity.",
|
|
4
|
-
"version": "0.6.2-
|
|
4
|
+
"version": "0.6.2-97",
|
|
5
5
|
"author": "Gaetan Le Gac (https://github.com/gaetanlegac)",
|
|
6
6
|
"repository": "git://github.com/gaetanlegac/5htp.git",
|
|
7
7
|
"license": "MIT",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"@babel/preset-typescript": "^7.15.0",
|
|
28
28
|
"@prefresh/webpack": "^3.3.2",
|
|
29
29
|
"@squoosh/lib": "^0.4.0",
|
|
30
|
+
"@tailwindcss/postcss": "^4.1.17",
|
|
30
31
|
"@types/babel__core": "^7.1.16",
|
|
31
32
|
"@types/cookie": "^0.4.1",
|
|
32
33
|
"@types/express": "^4.17.13",
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
"serialize-javascript": "^6.0.2",
|
|
77
78
|
"sharp": "^0.34.3",
|
|
78
79
|
"speed-measure-webpack-plugin": "^1.5.0",
|
|
79
|
-
"tailwindcss": "^
|
|
80
|
+
"tailwindcss": "^4.1.17",
|
|
80
81
|
"terser-webpack-plugin": "^5.2.4",
|
|
81
82
|
"ts-alias": "^0.0.7",
|
|
82
83
|
"ts-node": "^10.9.1",
|