vuejs-templates / webpack

A full-featured Webpack + vue-loader setup with hot reload, linting, testing & css extraction.
MIT License
9.7k stars 4.38k forks source link

Different CSS for different users #1159

Closed morganzysman closed 6 years ago

morganzysman commented 6 years ago

Hi everyone,

I have a large sass solution that i'm migrating to vuejs2/webpack. I have used vue-cli to install this template.

In my current project, I have a gulp task that allows me to generate different css files, that mostly have the same code except color ( I have a different color / user ).

I want to be able to do the same using webpack: capture d ecran 2017-12-12 a 17 24 47

This is the current structure I have, so basically I want webpack, to loop through all users, get the variables and then generate the .css file per client.

Any help would be appreciated, I understood I need to at least use extract-text-webpack-plugin

Regards

LinusBorg commented 6 years ago

That would probably require some drastic changes, I think you will be better off asking on the forum or the chat (forum.vuejsorg / chat.vuejs.org) or simply build your SCSS with gulp like you are used to.