Skip to content

Commit

Permalink
docs: update
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Feb 11, 2025
1 parent b22be42 commit d672747
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/nuejs.org/docs/command-line-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Usage

- **-b or --esbuild**: Uses esbuild as the bundler for your assets. Note that you need to install esbuild manually for this to work.

- **-l or --lcss**: Uses lightningcss as the minifier for your CSS. Note that you need to install lightningcss manually for this to work.

- **-P or --port**: Sets the port number to serve the site on. This is particularly useful if the default port (`8080`) is already in use.

### File Matches
Expand Down
6 changes: 4 additions & 2 deletions packages/nuejs.org/docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ links:
soc: //en.wikipedia.org/wiki/Separation_of_concerns
```
### lightning_css
### minify_css
This setting controls the processing of CSS by [Lightning CSS](//lightningcss.dev/), a tool that optimizes CSS for better performance. By default, this feature is enabled (`true`), which means that CSS will be processed for improvements. Setting this to `false` disables the default processing, and the CSS is served directly as is, which may be useful for debugging or specific use cases where processing is not desired.
This setting controls the processing of CSS by Bun or [Lightning CSS](//lightningcss.dev/), which optimize CSS for better performance. By default, this feature is enabled (`true`), which means that CSS will be processed for improvements. Setting this to `false` disables the default processing, and the CSS is served directly as is, which may be useful for debugging or specific use cases where processing is not desired.

### native_css_nesting

Currently only available with Lightning CSS (`--lcss` option).

Determines whether to use native CSS nesting instead of converting them to un-nested style rules that are supported in all browsers. Native CSS nesting allows you to write more intuitive and organized CSS by nesting styles. Setting this to `true` generates a smaller CSS output, which can enhance performance, but it may not be supported by older browsers. Always check the current [Can I Use](//caniuse.com/css-nesting) statistics for details on browser compatibility.

### port
Expand Down
2 changes: 1 addition & 1 deletion packages/nuekit/src/nuekit.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export async function createKit(args) {

async function processCSS({ path, base, dir}) {
const data = await site.getData()
const css = data.lightning_css === false ?
const css = data.minify_css === false ?
await read(path) :
await buildCSS(join(root, path), is_prod, data, lcss)
await write(css, dir, base)
Expand Down

0 comments on commit d672747

Please sign in to comment.