Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: livingcss usage with Webpack #25

Closed
Kamilius opened this issue Jan 18, 2017 · 5 comments
Closed

Question: livingcss usage with Webpack #25

Kamilius opened this issue Jan 18, 2017 · 5 comments

Comments

@Kamilius
Copy link

Hi,
if you have an experience with making livingcss work alongside webpack, could you help me providing a simple example of how this can be achieved?

@ghost
Copy link

ghost commented Aug 23, 2017

@Kamilius we have started today with an webpack implementation as plugin. maybe its interesting for you.

https://github.com/Riodigital-de/livingcss-webpack-plugin

we already got the basics work.
now we need to implement tags and so on but its a start.

to see it in action just clone it and:

for simple example:

# yarn
# yarn example:simple:serve
# yarn yarn example:simple:build

then open http://127.0.0.1:8080/styleguide/buttons.html

for fs-styles example:

# yarn
# yarn example:fs-styles:serve
# yarn yarn example:fs-styles:build

then open http://127.0.0.1:8080/styleguide

it already supports to choose wich chunks should be included, hot-reload in dev-server and preprocess function.

@ghost
Copy link

ghost commented Aug 24, 2017

FYI today we implemented

  • add tags
  • read stylesheets
  • read globalStylesheets

now we have all base features integrated and the next steps are:

  • compilation file paths (copy assets from webpack chunks)
  • css file paths (copy assets from webpack chunks)
  • create own template (bootstrap)
  • extract handlebars binding (make template engine independent)
  • add support for other living stypeguide frameworks

@ghost
Copy link

ghost commented Aug 24, 2017

FYI we renamed the repo to styleguide-webpack-plugin because we plan to integrate other solutions like fabricator for component development.

the fs-style example was removed for the sake of simplicity.

the repo now lives here: https://github.com/Riodigital-de/styleguide-webpack-plugin.

we stop to implement new features now and write docs and some tests.

@straker
Copy link
Owner

straker commented Aug 24, 2017

NIce!

@Kamilius
Copy link
Author

Nice, thanks @onceatime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants