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

Question: Using ui.frontend folder for SASS and React? #95

Closed
ksurendra opened this issue Apr 16, 2020 · 3 comments
Closed

Question: Using ui.frontend folder for SASS and React? #95

ksurendra opened this issue Apr 16, 2020 · 3 comments

Comments

@ksurendra
Copy link

Question:
When using the new AEM Archetype (v23) general/react/angular sources are built into "ui.frontend" folder.

While this project (wknd) is a great resource/refer to build codebases for new projects, the "ui.frontend" in wknd is used for "sass" and this works great.

How can we build a new codebase using both react-app(when built with archetype 23) and sass (file structure as defined in wknd) i.e., AEM + React + SASS ?

@godanny86
Copy link
Contributor

hi @ksurendra good question. If you just want to add Sass support to the React ui.frontend module generated by the archetype you should be able to follow: https://create-react-app.dev/docs/adding-a-sass-stylesheet. The ui.frontend (React) module is actually a webpack project based on the Create React App.

@godanny86
Copy link
Contributor

@ksurendra
Copy link
Author

Thanks @godanny86 for following up on this.

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

No branches or pull requests

2 participants