5htp 0.6.2-96 → 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.
@@ -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, true, dev),
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,7 +38,14 @@ module.exports = (app: App, dev: Boolean, client: boolean) => {
38
38
  options: {
39
39
  postcssOptions: {
40
40
  plugins: [
41
- /* Tailwind V4 */'@tailwindcss/postcss',
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
+ }),
42
49
  ///* Tailwind V3 */require('tailwindcss'),
43
50
  require('autoprefixer'),
44
51
  ],
@@ -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-96",
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",