Comments (9)
I found this too:
from kss-node.
Maybe we shouldn't be copying the stylesheet, but instead just referencing the styleguide. Hmmm…
from kss-node.
Sorry i don't follow you @JohnAlbin, this issue was regarding copying a dir?
from kss-node.
Meant to say:
Maybe we shouldn't be copying the stylesheet, but instead just referencing it from the styleguide. Hmmm…
I think this is a deep flaw in the way kss-node works right now. It shouldn't be trying to compile the stylesheets; it causes too many problems like this one.
The best way to handle this is to not have kss-node try to include a stylesheet. Instead use the kss-node --init my-custom-template
to create a custom template that you can alter and add in your own stylesheets by hand. That's the way I use kss-node.
This will be "fixed" when #83 is completed.
from kss-node.
interesting, does this mean maintaining x2 stylesheets?
from kss-node.
interesting, does this mean maintaining x2 stylesheets?
Not at all. You would generate your styles the normal way you would for your project. And then just add a link to your generated stylesheet into the styleguide index.html template.
from kss-node.
#83 has been fixed. So the master branch (where kss-node 2.x is being developed) still has the --css option that copies and aggregates CSS files. That still doesn't fix any relative images in the CSS files, though.
So our options are to:
- fix the relative paths in the CSS (hard!) or
- just add
<link>
tags to the template that includes the CSS without copying it.
from kss-node.
just add tags to the template that includes the CSS without copying it.
Created an issue for that in the 2.x branch: #152
I'm leaving this as an open bug in 1.x.
from kss-node.
This is still a bug in 1.x, but since I'm working on 3.x now, I'm going to close this issue. It doesn't appear anyone needs this fixed in 1.x.
from kss-node.
Related Issues (20)
- 3 level navigation
- An in-range update of twig is breaking the build 🚨 HOT 1
- How can I forward options into twig.js?
- ScrollSpy conflict
- Define styleguide components in the template directly HOT 2
- Generate example html from SASS? HOT 1
- Use different builders for different sections of the styleguide?
- Does not work if not installed globally
- v3.0.1 failing with permissions issues HOT 6
- v.3.0.0 Update may require relative path changes to projects HOT 1
- kss not recognizing handlebars code HOT 1
- v3.0.1 outputs: "Version 9 of Highlight.js has reached EOL" HOT 9
- Node versions >= 14
- Update SASS in kss-node-handlebars-builder
- Add option to load JavaScript in rendered styleguide as ES6 module HOT 1
- Extending handlebars helpers not working. v3.1.0 HOT 1
- Question: Do I need to write any javascript to extend handlebars to register partials? HOT 2
- Can I show variables with encoded SVG icons in the styleguide without hard-coding the values?
- ::selection as a modifier HOT 1
- kss-node multiple markup on page?
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 kss-node.