Add Sass option after creation of a project

戏子无情 提交于 2020-01-05 03:56:04

问题


Is there any way to generate a JHipster project without Sass option and add it later on?

I have tried to enable it via ".yo-rc.json" and then I run "jhipster upgrade --force", but it does not enable it.


回答1:


Here is a way to do it while keeping your custom code using git.

Let's say your working code in on master (you could create a branch for experimenting), create a git branch to add saas

git checkout -b add-saas

Modify .yo-rc.json, re-generate your app using jhipster --with-entities

build your app, test it and commit if OK:

git add . 
git commit -m "Re-generated with saas"

then merge back to master:

git checkout master
git merge -s recursive Xours add-saas


来源:https://stackoverflow.com/questions/49009650/add-sass-option-after-creation-of-a-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!