-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
LESS files for custom compilation. Compiler Error #4173
Comments
So, this is my fault. Something that I never got around to fixing. This is because we have a grunt concatenate task that is supposed to pull in all of the less files into one. The problem with this is that the concatenate task doesn't resolve imports. What really needs to happen is that the less files that get put into release need to be copied over and moved into a place where the customizer can get to them. Additionally, bootstrap needs to be added as an NPM dependency for the gh-pages site. In the next release (3.0.4 coming later this week) the NPM repo and bower will have the less files in their release. If you want to compile your own css files then all you will need is to have bootstrap installed as an NPM dependency and they should compile correctly. I hope this answers your question. |
Thanks for your reply!
thanks :) |
|
|
What are you using for a package manager? NPM? Bower? |
We are using npm. |
So the newest release now contains the less files (3.0.4) unfortunately the bootstrap imports aren't in the right place. I think the import lines should all be using variables so it doesn't matter where you put bootstrap relative to your npm import. |
I am using Bootstrap and am running into the same problem. I am not super experienced with LESS, so this might be a silly problem on my part. This is all that is in my file that I use to import the main.less: @bootstrapDirectory: '../../../../bootstrap';
@import (once, reference) '../bower_components/angular-ui-grid/src/less/main'; I know the paths are correct since I was getting errors about files not existing prior to when I saw the I've read through this thread several times and I'm thinking it is slightly over my head... Is there a different process for using Bower with ui-grid? Thanks! |
Import does not support namespaces in less. To use namespaces all files which use them have to be copied into one less file and then compiled with less. |
Ah, ok. so basically the fix for this (since I see this has the PRs PLZ tag) would be to not import into a namespace? I will look through the grunt tasks and see how they are doing that so that hopefully we can replicate it in Gulp for my project. Thanks, @ChrisWiGit! |
I'm using a grunt task with grunt-text-replace to remove #ui-grid-twbs completely since I'm using bootsstrap, too and I want to have adapted bootstrap classes to spread everywhere. |
The less customizer was broken when bootstrap was added for less mixins. The less customizer now uses the newest version of less.js and compiles all of the less files using imports instead of a concatinated file. Feature less files are still not included in the customizer unfortunately. Closes #4079 Closes #3918 Related #4173
So what the solution with .btn() undefined mixin? I try import angular-ui-grid to my project with font-path customization |
It seems the the customizer is still broken. Can someone pls advise how to change the look and feel of the grid based on a custom style sheet ? |
So, how do I use the ui-grid less files when my application is using a version of bootstrap that doesn't contain the |
There a problem with url, goto: http://ui-grid.info/customizer/#/ |
Has anyone found a solution for |
UI-Grid no longer depends on bootstrap to compile so less files can be easily compiled. fix angular-ui#4173, fix angular-ui#5435
Hi,
im using the less files of ui grid to create my own style.
I stumbled on different problems which I want to explain :
Could you explain how these variables are defined, so I can used them in my less compilation?
Otherwise, great work! 👍
The text was updated successfully, but these errors were encountered: