I have been searching for solution regarding, Grunt Usemin, Copy tools.
Finally i have decided to write it down here.
this might help others.
Html Snippet
<!-- build:js ${pageContext.request.contextPath}/assets/js/main.js -->
<!-- app:js -->
<script src="${pageContext.request.contextPath}/js/script-test-one.js"></script>
<script src="${pageContext.request.contextPath}/js/script-test-two.js"></script>
<script src="${pageContext.request.contextPath}/js/script-test-three.js"></script>
<script src="${pageContext.request.contextPath}/js/script-test-four.js"></script>
<!-- endapp -->
<!-- endbuild -->
Grunt Build Command
grunt build
Output I am getting
└───concat
├───${pageContext.request.contextPath}
│ └───assets
│ ├───js
│ └───style
└───assets
└───style
I am getting empty folders, how can i remove ${pageContext.request.contextPath}/ from the path, because when i had removed from html files things are working fine. since we need contextPath before each path this new issue has came up.
via Sumeet Gohil
No comments:
Post a Comment