Hello,
I am new to PrimeReact and React/Webpack in general. I've tried running https://github.com/primefaces/primereact-quickstart and it works. However, I can't seem to get webpack to work or it doesn't seem to apply the themes to my simple app. Would anyone have an example setup with webpack + primereact for reference?
Many thanks!
Ricky
PrimeReact with webpack setup
I recommend you to use "create-react-app" : https://github.com/facebookincubator/create-react-app
It does everything you need to start and hide all the boilerplate / work related about building the app (webpack here). If you want to see the webpack configuration or need to edit it, you can do in your project.
So basically, start with create-react-app and if you need more, eject your project
It does everything you need to start and hide all the boilerplate / work related about building the app (webpack here). If you want to see the webpack configuration or need to edit it, you can do
Code: Select all
npm run eject
So basically, start with create-react-app and if you need more, eject your project
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/
___________________
Sudheer Jonna
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I also suggest create-react-app, it is awesome and handles all the complex webpack config for you via react-scripts.
Hi Ricky,
is this still an issue?
I had problems loading styles, especially Font-Awesome stuff, when importing with webpack.
It turned out to be problem of relative path being wrong for url- and file-loader.
This post on stackoverload https://stackoverflow.com/questions/341 ... ding-fonts helped me through.
Please consider Will Madden's solution.
br volker
is this still an issue?
I had problems loading styles, especially Font-Awesome stuff, when importing with webpack.
It turned out to be problem of relative path being wrong for url- and file-loader.
This post on stackoverload https://stackoverflow.com/questions/341 ... ding-fonts helped me through.
Please consider Will Madden's solution.
br volker
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests