Giter VIP home page Giter VIP logo

circus-stylus's People

Contributors

kpdecker avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

circus-stylus's Issues

Verify that loaders operate correctly

We want to support things like:

background: url('file!foo.png');

To allow for optimizations for cases where we don't want to inline failover images, etc.

Implement image handling

We want to optimize image handling and generate specific stylesheets for different environments. General plan of attack:

  • Non-image styles should be rendered as normal into one stylesheet.
  • Images should be broken out into environment specific stylesheets that augment the normal sheet. These should allow for:
    • SVG content
    • Pixel density-based raster content (From a technical side, this is likely not important on the pixel density scale. Any browser that is able to report a pixel density larger than 1 will likely support SVG, but workflows may dictate raster vs. SVG)

The require.css calls should then be augmented to allow for loading/unloading both sheets in unison.

url references need to operate safely within include files

"Built" include files are going to have issues with url references due to path concerns.

  1. Users could move these references into the includes dir and they can be copied at build time. This would work and remove the concerns about the file not being available but this could also end up with a fair amount of overhead due to files being duplicated across multiple projects.
  2. Can attempt to parse include files on build and copy over all references. This is more flexible for users but could also run into issues due to ambiguous constructs.

Both of these cases suffer from potential concerns of duplication when content is pulled in to multiple components. That concern should be handled by a publish step that maps include url references to published path names.

/cc @alande

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.