-
-
Notifications
You must be signed in to change notification settings - Fork 177
CSS style : dev vs prod #610
Comments
I think I'm not clear enough. I'll provider later more information to reproduce here |
yes very minor here but there is a PR in jhipster control center, which uses Vue.js and the custom css is not used in prod. And I saw the same for my gateway with vue.js for my current customer, with bootswatch |
So dev is correct, right? |
I'll provide a screennshot as soon as possible :) |
At least I think it looks "better" :) |
Using this diff, solves the problem: diff --git a/src/main/webapp/content/scss/vendor.scss b/src/main/webapp/content/scss/vendor.scss
index 560f820..df40ab7 100644
--- a/src/main/webapp/content/scss/vendor.scss
+++ b/src/main/webapp/content/scss/vendor.scss
@@ -10,5 +10,6 @@ eg $input-color: red;
@import '~bootstrap/scss/bootstrap';
@import '~bootstrap-vue/src/index.scss';
@import '~bootswatch/dist/spacelab/bootswatch';
+@import 'global.scss';
@atomfrede : do you think it's the correct fix ? |
I looks strange imho. Don't we have a vendor and app.css file in the end? If you add global.css also to vendor it will be delivered twice I think. Once as part of vendor.css and as main.css |
yes probably, but to be honest, I sux in CSS... I couldn't help much here lol |
Try to set the chunkSortMode to manual also in webpack.prod.
|
I think it works @atomfrede ! Thanks a lot Our JHipster Control Center doesn't contain all new updates from Vue.js blueprint |
With your suggestion, our sidebar menu in JHipster Control Center works well -> jhipster/jhipster-control-center#56 |
Seen the screenshot in the other pr. Looks really cool. Looking forward to the final result. I can provide a pr for the blueprint with the fix. |
The CSS style is completely different when using in dev and in prod profile.
It seems because the custom css is not used at all in prod and the boostrap one override our custom style.
The text was updated successfully, but these errors were encountered: