@massimo-cassandro/minimo 1.38.1 → 1.38.3

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.
@@ -86,10 +86,13 @@ export const pxToRem = buildConfig.pxToRem !== false;
86
86
  // destination file take priority over the ones generated by this build (see
87
87
  // build-tokens-src/merge-css.mjs). It can also be an array of strings/RegExps:
88
88
  // only the properties generated by the token source files matching one of its
89
- // entries are merged. An empty or invalid value means false. Default: false.
89
+ // entries are merged. An empty or invalid array means false. Explicit false
90
+ // disables the merge entirely (the destination file is fully regenerated).
91
+ // Default: true (i.e. when the key is left unset).
90
92
  /** @type {boolean|(string|RegExp)[]} */
91
93
  export const mergeCustomProps = (() => {
92
94
  const value = buildConfig.mergeCustomProps;
95
+ if (value === undefined) return true;
93
96
  if (value === true) return true;
94
97
  if (Array.isArray(value)) {
95
98
  const entries = value.filter((entry) => typeof entry === 'string' || entry instanceof RegExp);
@@ -167,10 +167,10 @@ const config = {
167
167
  // Preserves custom properties already present in the CSS destination file
168
168
  // (destFile, from a previous build) across rebuilds: their values take
169
169
  // priority over the ones generated by this build. Useful to keep manual
170
- // overrides/additions made directly in the compiled CSS. Ignored on the
171
- // first build, when destFile does not exist yet. Accepted values:
172
- // false (default) - no merge: the destination file is fully regenerated
173
- // true - merge all the sources
170
+ // overrides/additions made directly in the compiled CSS. Ignored if the
171
+ // destFile does not exist yet. Accepted values:
172
+ // false - no merge: the destination file is fully regenerated
173
+ // true (default) - merge all the sources
174
174
  // array - strings and/or RegExps matched against the path of the
175
175
  // token source files (those in `source` or `sourceModes`):
176
176
  // only the properties generated by a matching file are
@@ -427,6 +427,15 @@ const config = {
427
427
  ignoreOrder: true
428
428
  }),
429
429
 
430
+ // =>> plugins: MiniCssExtractPlugin
431
+ // contenthash solo se non si usa Dev Server
432
+ new MiniCssExtractPlugin({
433
+ filename: process.env.WEBPACK_SERVE ? '[name].css' : '[name].[contenthash].css',
434
+ chunkFilename: process.env.WEBPACK_SERVE ? '[id].css' : '[id].[contenthash].css',
435
+ ignoreOrder: true
436
+ }),
437
+
438
+
430
439
  // =>> plugins: InlineCriticalCssPlugin (solo prod)
431
440
  // ...(isDevelopment
432
441
  // ? []
@@ -77,6 +77,7 @@ export default {
77
77
  '@stylistic/block-closing-brace-newline-after': null,
78
78
  '@stylistic/block-opening-brace-space-before': null,
79
79
  '@stylistic/declaration-block-semicolon-newline-before': 'never-multi-line',
80
+ '@stylistic/declaration-colon-newline-after': null,
80
81
  '@stylistic/function-max-empty-lines': 2,
81
82
  '@stylistic/function-parentheses-space-inside': 'never-single-line',
82
83
  '@stylistic/max-empty-lines': 2,
@@ -93,7 +94,7 @@ export default {
93
94
  '@stylistic/value-list-comma-newline-after': 'always-multi-line',
94
95
  '@stylistic/value-list-comma-newline-before': 'never-multi-line',
95
96
  '@stylistic/value-list-comma-space-after': null,
96
- '@stylistic/value-list-max-empty-lines': 3
97
+ '@stylistic/value-list-max-empty-lines': 3,
97
98
  },
98
99
  overrides: [
99
100
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@massimo-cassandro/minimo",
3
- "version": "1.38.1",
3
+ "version": "1.38.3",
4
4
  "description": "Light css framework & utilities",
5
5
  "type": "module",
6
6
  "main": "./index.js",