Skip to content

Commit

Permalink
6.1.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
enact-bot committed Oct 17, 2024
2 parents b69497a + 930cc15 commit 9c4119e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 6.1.3 (October 17, 2024)

* No significant changes.

## 6.1.2 (March 13, 2024)

* Updated docs to cover the latest commands of `enact pack`.
Expand Down
5 changes: 4 additions & 1 deletion commands/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function displayHelp() {
Private Options:
--entry Specify an override entrypoint
--no-minify Will skip minification during production build
--no-split-css Will not split CSS into separate files
--framework Builds the @enact/*, react, and react-dom into an external framework
--externals Specify a local directory path to the standalone external framework
--externals-public Remote public path to the external framework for use injecting into HTML
Expand Down Expand Up @@ -258,6 +259,7 @@ function api(opts = {}) {
opts['content-hash'],
opts.isomorphic,
!opts.animation,
!opts['split-css'],
opts.framework,
opts['ilib-additional-path']
);
Expand Down Expand Up @@ -289,6 +291,7 @@ function cli(args) {
'content-hash',
'custom-skin',
'minify',
'split-css',
'framework',
'externals-corejs',
'stats',
Expand All @@ -301,7 +304,7 @@ function cli(args) {
'help'
],
string: ['externals', 'externals-public', 'locales', 'entry', 'ilib-additional-path', 'output', 'meta'],
default: {minify: true, animation: true},
default: {minify: true, 'split-css': true, animation: true},
alias: {
o: 'output',
p: 'production',
Expand Down
16 changes: 14 additions & 2 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module.exports = function (
contentHash = false,
isomorphic = false,
noAnimation = false,
noSplitCSS = false,
framework = false,
ilibAdditionalResourcesPath
) {
Expand Down Expand Up @@ -451,7 +452,17 @@ module.exports = function (
parallel: true
}),
new CssMinimizerPlugin()
]
],
splitChunks: noSplitCSS && {
cacheGroups: {
styles: {
name: 'main',
type: 'css/mini-extract',
chunks: 'all',
enforce: true
}
}
}
},
plugins: [
// Generates an `index.html` file with the js and css tags injected.
Expand Down Expand Up @@ -495,7 +506,8 @@ module.exports = function (
!process.env.INLINE_STYLES &&
new MiniCssExtractPlugin({
filename: contentHash ? '[name].[contenthash].css' : '[name].css',
chunkFilename: contentHash ? 'chunk.[name].[contenthash].css' : 'chunk.[name].css'
chunkFilename: contentHash ? 'chunk.[name].[contenthash].css' : 'chunk.[name].css',
ignoreOrder: noSplitCSS
}),
// Webpack5 removed node polyfills but we need this to run screenshot tests
new NodePolyfillPlugin(),
Expand Down
4 changes: 2 additions & 2 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enact/cli",
"version": "6.1.2",
"version": "6.1.3",
"description": "Full-featured build environment tool for Enact applications.",
"main": "index.js",
"author": "Jason Robitaille <[email protected]>",
Expand Down

0 comments on commit 9c4119e

Please sign in to comment.