Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[web] Cockpit starter-kit webpack sync #413

Merged
merged 4 commits into from
Feb 7, 2023
Merged

Commits on Jan 25, 2023

  1. webpack: Always regenerate and clean up dist/

    By default, webpack does not clean up dist/, so when you e.g. touch the
    code and rebuild with `NODE_ENV=devel`, the old compressed assets from
    a previous `production` build were left in place, and cockpit could
    serve the old wrong ones. Enable the `clean` output option to fix this [1].
    
    Also force the rewrite of all files with `compareBeforeEmit: false`, so
    that the time stamps actually get updated on a webpack run. This fixes
    `make` rules and unnecessary rebuilds when nothing changed.
    
    Fixes #563
    
    [1] https://webpack.js.org/configuration/output/#outputclean
    martinpitt authored and dgdavid committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    2ed2834 View commit details
    Browse the repository at this point in the history
  2. Add CSS linting through stylelint

    Include CSS linting by default for our CSS/SCSS files, originally
    introduced in cockpit. The stylelint configuration is copied from
    760a4628282e02fbcef3.
    jelly authored and dgdavid committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    1dd2a01 View commit details
    Browse the repository at this point in the history
  3. [web] Apply stylelint fixes

    dgdavid committed Jan 25, 2023
    Configuration menu
    Copy the full SHA
    e5fcdde View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2023

  1. Configuration menu
    Copy the full SHA
    cf31c19 View commit details
    Browse the repository at this point in the history