hicTech / cssPlus

Robust, fast and cross browser layout scaffolding based on Flexbox.
http://hictech.github.io/cssPlusWebsite/home.html
MIT License
102 stars 15 forks source link

Webpack 2 plugin #2

Open AndreaCardamone opened 7 years ago

AndreaCardamone commented 7 years ago

Write a webpack2 plugin for cssPlus

AndreaCardamone commented 7 years ago

The idea is to avoiding the the nesting factor in building process.

For example

<div data-cssplus="EXTENDER>COLS>CELL(_FLEX)">content</div>

will become

<div class="EXTENDER">
  <div class="COLS">
    <div class="CELL _FLEX">
       content
    </div>
  </div>
</div>

Notice: this syntax is an indicative example