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

Allow users to import sass files via Webpack sass-loader #2647

Merged
merged 4 commits into from
Jun 9, 2022

Commits on May 27, 2022

  1. Add 'sass' entry point to package.json

    Allows users to import all.scss in their own sass files using:
    
    `@import "govuk-frontend"`
    
    May only be supported by Webpack at the moment
    https://webpack.js.org/guides/package-exports/#conditions
    Vanita Barrett committed May 27, 2022
    Configuration menu
    Copy the full SHA
    5bea0b6 View commit details
    Browse the repository at this point in the history
  2. Add ./govuk/ entry to package.json to allow direct import

    Allows users to directly import certain sass files, e.g:
    
    ```
    @import "govuk-frontend/govuk/base";
    @import "govuk-frontend/govuk/all.scss";
    @import "govuk-frontend/govuk/all";
    @import "govuk-frontend/govuk/core/all";
    @import "govuk-frontend/govuk/objects/all";
    ```
    Vanita Barrett committed May 27, 2022
    Configuration menu
    Copy the full SHA
    23741f5 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2022

  1. Add "./govuk-esm/" to package.json

    Similar to adding "./govuk/" to package.json, this lets tools know that these
    paths are also available.
    Vanita Barrett-Smith committed May 30, 2022
    Configuration menu
    Copy the full SHA
    05e340a View commit details
    Browse the repository at this point in the history
  2. Add to changelog

    Vanita Barrett-Smith committed May 30, 2022
    Configuration menu
    Copy the full SHA
    e094dc1 View commit details
    Browse the repository at this point in the history