sivaprasadreddy / springboot-learn-by-example

SpringBoot Learn By Example Book
Apache License 2.0
75 stars 93 forks source link

Try to use webjars instead of static files #2

Open rajadileepkolli opened 8 years ago

rajadileepkolli commented 8 years ago

As spring community moved from static files to webjars , it would be a nice addition if we move to webjars for bootstrap, js,css,font etc. If you are OK with it, I will work on the PR and submit it.

sivaprasadreddy commented 8 years ago

Hi, I have used bootstrap, css, js files directly in few modules to demonstrate how we can serve static content from static or public folders in src/main/resources directly.

I have explained using of webjars in chapter-11/springboot-web-demo module.

Sometimes we may not have our desired JS/CSS libraries as webjars or we may want to use some tools to minify/uglify JS/CSS files.

So, as I have already demonstrated using WebJars, I think it would be nice addition to explain how to use minification tools like http://samaxes.github.io/minify-maven-plugin/.

What do you say?

Thanks, Siva

rajadileepkolli commented 8 years ago

Yeah agreed with you. This plugin is a good addition