Comments (7)
dist/color-space
is built to use as a standalone module, so it exposes global colorSpace
in case if you don’t use any commonJS wrapper.
It seems to be the issue of webpack, have you looked up for the solution on that? Browserify builds it just fine.
BTW, do you use that husl color space? I can just exclude it from the index.js
, it is quite uncommon space and adds up extra size to build.
from color-space.
We do use a CommonsJS wrapper. We don't use the husl colors pace at all.
Excluding it would be awesome.
from color-space.
actually you can include only the color-spaces you use, the size of build will be minimal: require('color-space/hsl')
from color-space.
I prefer that method, I'll talk to our developer that used the lib and have him only require the spaces used.
Thanks!
from color-space.
Ok. So I’ll close this, as this seem to be the issue of webpack.
@sokra, please have a look.
from color-space.
Works fine for me. Maybe an incorrect configuration.
from color-space.
Probably our configuration. we have a very complicated configuration where webpack configs are generated at build time for each component and components are compiled separately.
I'll make sure that we only require whats necessary instead of the entire index.
Thanks for your help.
from color-space.
Related Issues (20)
- Conversion errors HWB -> RGB -> HWB HOT 3
- Hex HOT 4
- example `space.lab.lch(...)` does not work
- Outdated npm package HOT 1
- HSI out of bounds values and hue shifting HOT 6
- HSP out of bounds values and hue shifting HOT 2
- Munsell
- Add new color space: NCol
- sRGB, Adobe RGB, HDTV, NTSC, PAL-SECAM, etc.
- HuSL deprecated, use HSLuv instead
- RGBA support HOT 1
- Typescript declarations HOT 4
- Documentation about RGB conversion: is it sRGB? D65/2?
- Failure to convert XYZ to RGB and back
- npm WARN deprecated [email protected]: Redundant dependency in your project. HOT 1
- Oklab, Okhsv, Okhsl HOT 1
- Query regarding TSL color space implementation HOT 2
- TypeError: space.lab.lch is not a function HOT 1
- LRGB - Linear RGB space? HOT 2
- Deprecation notice
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 color-space.