Comments (4)
This ist due to https://github.com/bootprint/customize-engine-less/blob/master/index.js#L28 which converts the entries like { main: 'main.less' }
into the internal representation { main: [ 'main.less' ] }
and arrays are always merged by concatenation in customize
.
At the moment, it is not possible to override files.
The thought behind this that you can always override declarations in less-files by appending a new less-file. I have not taken into account that reducing the size of the resulting css-file would be of concern.
I agree, this should be done. It should be an issue at customize-engine-less
, but I am not sure how to fix it, and I personally probably won't have the time at the moment. If you want to propose a change, don't hesitate to create a PR. I will then have a look at it.
from bootprint.
I have a pretty crappy workaround, which is to alter the node_modules bootstrap.less
file before running bootprint. So I'm not going to attempt a PR.
My problem does extend beyond reducing the size of the css.
I use this for static webpage generation, which works great, but when converting the page to PDF (using node-html-pdf or PhantomJS). it sets the @media
to print
. node-html-pdf uses PhantomJS and ultimately both libraries use QtWebKit, and they run into this bug. Bootstrap has it's own print styles, that use !important
flags to wash out the colors of the webpage, which completely jacks the color scheme. I was hoping I could replace the bootstrap.less
file with my own that removes the @import "print.less"
through the configuration.
Customize.js has that _customize_custom_overrider
, which looked promising, but I could never get it to work.
from bootprint.
I have changed the title to reflect your actual goal on this, so that other people can find it as well.
At the moment, I don't see a good alternative for the hacky workaround. Which is sad, because the whole idea of customize
was to allow easy customizations, so this should be possible somehow.
I will have to think about it.
from bootprint.
You might be able to override the css style similar to the example in http://stackoverflow.com/questions/9636132/list-style-css-override-back-to-default (using inherit
along with !important
). Since your styles are included after the bootstrap-styles, they should override them if they are equal specific.
from bootprint.
Related Issues (20)
- Code of Conduct, Contributing guidelines for Bootprint
- Syntax highlighting not working HOT 7
- Support for JavaScript files
- Documentation for including JavaScript files in the output
- support requesting through proxies HOT 1
- An in-range update of js-yaml is breaking the build 🚨 HOT 1
- An in-range update of q is breaking the build 🚨
- An in-range update of js-yaml is breaking the build 🚨 HOT 3
- An in-range update of debug is breaking the build 🚨 HOT 4
- An in-range update of mocha is breaking the build 🚨 HOT 4
- An in-range update of get-promise is breaking the build 🚨
- An in-range update of commander is breaking the build 🚨 HOT 2
- Newlines (\n) in example filed are output verbatim HOT 3
- Adding npm package as project dependency fails due to trace dependency HOT 4
- OpenAPI V3 Support HOT 1
- Potential Security Risk HOT 3
- 22 Security Vulnerabilities on Fresh Checkout HOT 1
- Broken Documentation HOT 3
- bootprint swagger cli command errors out with Engine 'uglify' not found HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootprint.