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

Feature: Support for css/sass files #103

Merged
merged 4 commits into from
Oct 21, 2022
Merged

Feature: Support for css/sass files #103

merged 4 commits into from
Oct 21, 2022

Conversation

jackw
Copy link
Collaborator

@jackw jackw commented Oct 21, 2022

What this PR does / why we need it:
Currently create-plugin doesn't support CSS other than @emotion/css however there are plugins out there that either have css files or use libraries that have css files.

This PR:

  • Adds necessary style loaders to package.json
  • Updates webpack config to support css and sass
  • Updates webpack config assets / fonts paths to match recent fixes in toolkit
  • Fixes webpack config TS error (null -> undefined) and changes libraryTarget to library.type
  • Adds identity-obj-proxy for jest (this caters for css and css modules)

Which issue(s) this PR fixes:

Fixes #97

Special notes for your reviewer:

@jackw jackw added enhancement New feature or request create-plugin related to the create-plugin tool labels Oct 21, 2022
@jackw jackw added this to the v1.0.0 milestone Oct 21, 2022
@jackw jackw self-assigned this Oct 21, 2022
@jackw jackw changed the title Feature: Support compiling and testing css files Feature: Support for css/sass files Oct 21, 2022
@jackw jackw merged commit 62af067 into main Oct 21, 2022
@jackw jackw deleted the jackw/css-files-support branch October 21, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-plugin related to the create-plugin tool enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Cannot build css files
2 participants