replacing local css with CDN url in usemin

256 Views Asked by At

I am using grunt build to copy files from production to build. While working I am using local bootstrap css, however in build I need CDN url to be replaced for bootstrap.

<!--build:css http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css-->
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" />
<!-- endbuild-->

First of all is this possible? Grunt build is giving error for http path while using usemin.

Thanks.

1

There are 1 best solutions below

0
Omkar Puranik On

Got temporary solution to this.

My grunt build was perfect except http:// url for bootstrap. So i used --force (grunt build --force) command to build my project.

This gave me warning but build the project as per my requirements and CDN url for bootstrap.