-
Notifications
You must be signed in to change notification settings - Fork 36
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
Build with webpack (encore)? #63
Comments
I think I've narrowed down the problem spot, but this is my first time working with a project that uses scss files so I'm not sure how to fix it. _carousel.scss
Webpack bombs out on the url(...) lines as it cannot find the relative path of the files because it running from another folder. I'm still new so I'm not sure which folder it's running from. I tried playing with the file paths manually and couldn't figure it out. If I comment out I understand that sass uses a lot of variables, so is there any way that these (and whatever other images) can be referenced by a variable instead of the hard-coded path? |
@dragosct10 sorry to name-drop. I'm not sure where to go from here. I can manually comment out the carousel.scss as long as I'm not using it or even manually change the url(...) to point at the right file, but this will only work until the next update (2.0.2 came out within days of my purchase). I really don't want to have to make all of these changes each time there's an update. Thanks! |
Hi, @bbuehrle! We are sorry for so late response. Please, can you go to your archive in &.carousel-full-nagivation{
.carousel-control{
width: 50%;
&.left,
&.right{
background-image: none;
}
.material-icons,
.fa{
display: none;
}
}
.left{
cursor: url("../../img/kit/pro/arrow-left.png"), url("../../img/kit/pro/arrow-left.cur"), default !important;
}
.right{
cursor: url("../../img/kit/pro/img/arrow-right.png"), url("../../img/kit/pro/arrow-right.cur"), default !important;
}
} After that please compile the scss and try to do again the webpack build. Please, let us know if you still receive errors! Regards, |
Hey, @dragosct10! Sorry, but I just now saw this. Somehow, I never got the email that you had responded. I'm at work but will try this out as soon as I get a chance (hopefully tonight?) and I'll let you know what happens. Thanks, |
@dragosct10 I can replicate this problem with Laravel to, and you are correct in that the relative path needs to be updated as specified. Hope that is enough for you to be able to close this issue. |
Hi, @djallits! Thank you for this. We will fix also in the next update which will be very soon all this problem because it's annoying. Regards, Dragos |
Hi @dragosct10 , thank you for you reply, I think this path does not exist ""../../img/kit/pro/img/arrow-right.png"" |
Hi, @Camiloruiiz! Yes, my bad sorry in 2.0.3 the path was changed so please see the correct path Regards, |
Thank you @dragosct10, but I think this path: '../../' its still not the correct one, would be like '../' it'sn't? Im just running webpack and the error jut come form the console. but anyway thank you very much. |
@Camiloruiiz you are correct. I don't have access to the project right this moment, but I know the path is definitely still not right. Also, I'm not a guru when it comes to webpack (I've taken a major break from my project), but webpack is still going to bomb out on you when you try to run it. The second problem here is the .cur files. I'm not sure if webpack needs an extra plugin to be able to pull these files, but my quickest workaround was to completely remove the references to the .cur files from the |
Hi, @Camiloruiiz! I can't understand why you have an error from the console because this is the right path and I will show you in the next image: Like you noticed here you must go out once from the Regards, |
@dragosct10 This is the path in
This is the corrected path:
Also, as I mention previously, I think the path to the image and cursor files should be moved to |
Hi, @bbuehrle! Yes, this is the correct path, you are right. Thank you for your suggestion we will consider this for the next update. Regards, Dragos |
@bbuehrle yes you should add cur in the url loader.
And yes @dragosct10 👍🏻 that path it's right for development, but if you check the final css the path would be just one step up '../' because the img folder its no any more under scss folder. |
I just purchased this template yesterday. Very nice, clean looking templates. I couldn't decide between Material Kit Pro and Now UI Pro!
I started off with a completely fresh Symfony 4 project and I'm trying to use webpack to compile the SCSS files.
webpack.config.js
Error from running webpack build
I'm still fairly new at this so I could just be missing something. I couldn't find anything in the docs for builds using webpack.
The text was updated successfully, but these errors were encountered: