Comments (7)
Source map support would be great. I think I wouldn't use stilr without Source maps.
from stilr.
PR is very welcome. We will look into this, but I can't see exactly when, so any PR could speed up the process.
from stilr.
PostCSS can create sourcemap.
I think this will be enough. It'll generate inline source map, which is fast and therefore completely OK for development IMO.
if (process.env !== 'production') {
const prefixedCSS = postcss(autoprefixer())
.process( StyleSheet.render(), { map: true} ) // <--- THIS
.css;
stylesheet.textContent = prefixedCSS;
}
As for production usage, you can generate separate source map, too. See the docs.
from stilr.
would be great to expand on classnames, only problem I have with Stilr is hash only classnames!
from stilr.
@boyswan sorry, but I do not understand, what you want. Can you please rephrase? You would like Stilr to not use hashes as classnames?
from stilr.
At the moment classnames are generated as pure hashe's i.e. 'xy132as', it would be great if we could also include the actual classname, i.e. 'button_xy132as'
from stilr.
Okay, so actually just a vote for the initial issue comment? PR is more than welcome.
from stilr.
Related Issues (20)
- Multiple values using arrays? HOT 4
- neccesary nesting? HOT 4
- Vendor prefixing? HOT 2
- Code in NPM isn't compiled HOT 2
- Allow style keys to be strings HOT 1
- How does this compare to "jss" and/or "j2c"? HOT 1
- Webpack plugin HOT 4
- Trouble importing Stilr via require() HOT 1
- In hot-load mode, what if <App> doesn't re-render but a child of its does? HOT 4
- Allow prefix for tags
- Pretification HOT 1
- use babel 6 HOT 1
- Stilr & webpack - dynamic assets URLs HOT 1
- [email protected] doesn't satisfy peerDependencies on CI HOT 2
- Add eslint to CI
- v1.2.2 not working on internet explorer HOT 3
- j2c vs. stilr
- `content=""` is not rendered properly HOT 2
- Error: Cannot find module 'react/lib/CSSPropertyOperations' HOT 5
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 stilr.