@enact/cli 6.1.3 → 6.1.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 6.1.4 (April 24, 2025)
2
+
3
+ * No significant changes.
4
+
1
5
  ## 6.1.3 (October 17, 2024)
2
6
 
3
7
  * No significant changes.
package/README.md CHANGED
@@ -138,7 +138,7 @@ npm uninstall -g eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-bab
138
138
 
139
139
  Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
140
140
 
141
- Copyright (c) 2016-2024 LG Electronics
141
+ Copyright (c) 2016-2025 LG Electronics
142
142
 
143
143
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
144
144
 
package/commands/pack.js CHANGED
@@ -59,6 +59,7 @@ function displayHelp() {
59
59
  --entry Specify an override entrypoint
60
60
  --no-minify Will skip minification during production build
61
61
  --no-split-css Will not split CSS into separate files
62
+ --hash-classnames Will hash classnames in CSS
62
63
  --framework Builds the @enact/*, react, and react-dom into an external framework
63
64
  --externals Specify a local directory path to the standalone external framework
64
65
  --externals-public Remote public path to the external framework for use injecting into HTML
@@ -260,6 +261,7 @@ function api(opts = {}) {
260
261
  opts.isomorphic,
261
262
  !opts.animation,
262
263
  !opts['split-css'],
264
+ opts['hash-classnames'],
263
265
  opts.framework,
264
266
  opts['ilib-additional-path']
265
267
  );
@@ -299,6 +301,7 @@ function cli(args) {
299
301
  'isomorphic',
300
302
  'snapshot',
301
303
  'animation',
304
+ 'hash-classnames',
302
305
  'verbose',
303
306
  'watch',
304
307
  'help'
@@ -46,6 +46,7 @@ module.exports = function (
46
46
  isomorphic = false,
47
47
  noAnimation = false,
48
48
  noSplitCSS = false,
49
+ hashClassnames = false,
49
50
  framework = false,
50
51
  ilibAdditionalResourcesPath
51
52
  ) {
@@ -324,7 +325,7 @@ module.exports = function (
324
325
  use: getStyleLoaders({
325
326
  importLoaders: 1,
326
327
  modules: {
327
- getLocalIdent
328
+ ...(hashClassnames ? {} : {getLocalIdent})
328
329
  }
329
330
  })
330
331
  },
@@ -335,7 +336,8 @@ module.exports = function (
335
336
  use: getStyleLoaders({
336
337
  importLoaders: 1,
337
338
  modules: {
338
- ...(app.forceCSSModules ? {getLocalIdent} : {mode: 'icss'})
339
+ ...(app.forceCSSModules ? {} : {mode: 'icss'}),
340
+ ...(!app.forceCSSModules && hashClassnames ? {} : {getLocalIdent})
339
341
  }
340
342
  }),
341
343
  // Don't consider CSS imports dead code even if the
@@ -349,7 +351,7 @@ module.exports = function (
349
351
  use: getLessStyleLoaders({
350
352
  importLoaders: 2,
351
353
  modules: {
352
- getLocalIdent
354
+ ...(hashClassnames ? {} : {getLocalIdent})
353
355
  }
354
356
  })
355
357
  },
@@ -358,7 +360,8 @@ module.exports = function (
358
360
  use: getLessStyleLoaders({
359
361
  importLoaders: 2,
360
362
  modules: {
361
- ...(app.forceCSSModules ? {getLocalIdent} : {mode: 'icss'})
363
+ ...(app.forceCSSModules ? {} : {mode: 'icss'}),
364
+ ...(!app.forceCSSModules && hashClassnames ? {} : {getLocalIdent})
362
365
  }
363
366
  }),
364
367
  sideEffects: true
@@ -370,7 +373,7 @@ module.exports = function (
370
373
  use: getScssStyleLoaders({
371
374
  importLoaders: 3,
372
375
  modules: {
373
- getLocalIdent
376
+ ...(hashClassnames ? {} : {getLocalIdent})
374
377
  }
375
378
  })
376
379
  },
@@ -380,7 +383,8 @@ module.exports = function (
380
383
  use: getScssStyleLoaders({
381
384
  importLoaders: 3,
382
385
  modules: {
383
- ...(app.forceCSSModules ? {getLocalIdent} : {mode: 'icss'})
386
+ ...(app.forceCSSModules ? {} : {mode: 'icss'}),
387
+ ...(!app.forceCSSModules && hashClassnames ? {} : {getLocalIdent})
384
388
  }
385
389
  })
386
390
  },
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@enact/cli",
3
- "version": "6.1.3",
3
+ "version": "6.1.4",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@enact/cli",
9
- "version": "6.1.3",
9
+ "version": "6.1.4",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@babel/plugin-transform-modules-commonjs": "^7.23.3",
13
- "@enact/dev-utils": "^6.1.0",
13
+ "@enact/dev-utils": "^6.1.1",
14
14
  "@enact/template-sandstone": "^2.8.0",
15
15
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
16
16
  "@testing-library/jest-dom": "^6.2.0",
@@ -1580,9 +1580,9 @@
1580
1580
  }
1581
1581
  },
1582
1582
  "node_modules/@enact/dev-utils": {
1583
- "version": "6.1.0",
1584
- "resolved": "https://registry.npmjs.org/@enact/dev-utils/-/dev-utils-6.1.0.tgz",
1585
- "integrity": "sha512-uA5qZpPTgNAkt+2bIN8ncGe/k4XkLMI1CAlW11NecUrRI1nXwefBPp0QPv4VZGyYAbZlrTFEShYrVFQIwTwa/A==",
1583
+ "version": "6.1.1",
1584
+ "resolved": "https://registry.npmjs.org/@enact/dev-utils/-/dev-utils-6.1.1.tgz",
1585
+ "integrity": "sha512-ShwbCyXo9keYmquCmtXXZrSh537odNRshXaEZsdToK3UzzcHavZV/KYGd80Q4P/ekxjYWysuSappRygBSS2O3w==",
1586
1586
  "hasShrinkwrap": true,
1587
1587
  "dependencies": {
1588
1588
  "browserslist": "^4.22.2",
@@ -51204,9 +51204,9 @@
51204
51204
  "requires": {}
51205
51205
  },
51206
51206
  "@enact/dev-utils": {
51207
- "version": "6.1.0",
51208
- "resolved": "https://registry.npmjs.org/@enact/dev-utils/-/dev-utils-6.1.0.tgz",
51209
- "integrity": "sha512-uA5qZpPTgNAkt+2bIN8ncGe/k4XkLMI1CAlW11NecUrRI1nXwefBPp0QPv4VZGyYAbZlrTFEShYrVFQIwTwa/A==",
51207
+ "version": "6.1.1",
51208
+ "resolved": "https://registry.npmjs.org/@enact/dev-utils/-/dev-utils-6.1.1.tgz",
51209
+ "integrity": "sha512-ShwbCyXo9keYmquCmtXXZrSh537odNRshXaEZsdToK3UzzcHavZV/KYGd80Q4P/ekxjYWysuSappRygBSS2O3w==",
51210
51210
  "requires": {
51211
51211
  "browserslist": "^4.22.2",
51212
51212
  "chalk": "^5.3.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enact/cli",
3
- "version": "6.1.3",
3
+ "version": "6.1.4",
4
4
  "description": "Full-featured build environment tool for Enact applications.",
5
5
  "main": "index.js",
6
6
  "author": "Jason Robitaille <jason.robitaille@lge.com>",
@@ -44,7 +44,7 @@
44
44
  ],
45
45
  "dependencies": {
46
46
  "@babel/plugin-transform-modules-commonjs": "^7.23.3",
47
- "@enact/dev-utils": "^6.1.0",
47
+ "@enact/dev-utils": "^6.1.1",
48
48
  "@enact/template-sandstone": "^2.8.0",
49
49
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
50
50
  "@testing-library/jest-dom": "^6.2.0",