Skip to content

Build: Improve the way styles built for packages are consumed #8067

Closed

Description

@gziolo

Related issue: #3955.
Related PRs: #7640, #8016.

When working on moving all WordPress modules to packages folder to make them publishable to npm (#3955) we took a shortcut by leaving the old Webpack flow which allows us to consume the existing .scss files in the process. We need to replace it with a revisited approach which will take into account the following:

  • There are no longer folders in the root directory like nux or components.
  • npm run build:packages generates not only CSS files for the package in build-style folder but also their RTL versions.
  • Webpack is able to find them and include in the flow, it might be copied or even better included in the chain of processing.

Activity

  1. gziolo commented on Jul 30, 2018

    @gziolo
    MemberAuthor

    Fixed by @youknowriad in #8187 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] Build ToolingIssues or PRs related to build tooling[Type] Code QualityIssues or PRs that relate to code qualitynpm PackagesRelated to npm packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions