Skip to content

Conversation

NietoGX
Copy link
Contributor

@NietoGX NietoGX commented Mar 14, 2024

Description

This PR adds an option to the sui-bundler build lib for generating CSS chunks.

By default the code will not use chunks for the css. With the option --chunk-css will use the css with chunks.

Example

sui-bundler lib umd/index.js -o umd/ --root --chunk-css will generate a chunk for each css file.
For example, if we want to select a different scss file from the js with code like:

switch (site) {
    case 'fotocasa':
      import('./fotocasa.scss')
      break
    case 'cochesnet':
      import('./motor.scss')
      break
    case 'motosnet':
      import('./motor.scss')
      break
    case 'milanuncios':
      import('./milanuncios.scss')
      break
    case 'infojobs':
      import('./milanuncios.scss')
      break
    default:
      import('./index.scss')
  }

The sui-bundler will generate the next files:

image

oriolpuig and others added 26 commits July 2, 2024 13:40
…nline-error-decorator-message

feat(packages/eslint-plugin-sui): rephrase message for inlineErrorMissplace rule
feat(packages/sui-polyfills): Added polyfills
Bumps [@pactflow/pact-msw-adapter](https://github.com/pactflow/pact-msw-adapter) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/pactflow/pact-msw-adapter/releases)
- [Changelog](https://github.com/pactflow/pact-msw-adapter/blob/main/CHANGELOG.md)
- [Commits](pactflow/pact-msw-adapter@v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: "@pactflow/pact-msw-adapter"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
feat(packages/sui-performance): add performance package
andresz1 and others added 29 commits October 15, 2024 11:41
feat(packages/sui-pde): avoid sending impression when consents are not accepted
feat(packages/lint-repository-sui): Add jest adoption rule to lint
feat(packages/sui-lint): Add jest adoption rule to @s-ui/lint repository config
refactor(packages/sui-logger): add missed Trackers in client and server level
feat(packages/sui-decorators): remove console.log
feat(packages/sui-bundler): add tailwind support
…maps

feat(packages/sui-bundler): add experimental spritemaps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.