Skip to content

Commit

Permalink
remove FA CDN fixes #113
Browse files Browse the repository at this point in the history
  • Loading branch information
timelsass committed Jul 30, 2019
1 parent c844a77 commit 00fb343
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ gulp.task('phpDeps', function () {
config.node_modules + '/kirki-toolkit/**',
])
.pipe(replace('kirki-logo.svg', 'boldgrid-logo.svg'))
// Use locally provided FontAwesome dependency.
.pipe(replace(/([ \t]*)wp_enqueue_script\(\s?\'kirki-fontawesome-font\',\s?\'https:\/\/use.fontawesome.com\/30858dc40a.js\',\s?array\(\),\s?\'4.0.7\',\s?(?:true|false)\s?\)\;\s?^(?:[\t ]*(?:\r?\n|\r))*/gm, "$1global $boldgrid_theme_framework;\n$1$bgtfw_configs = $boldgrid_theme_framework->get_configs();\n\n$1if ( ! class_exists( 'BoldGrid_Framework_Styles' ) ) {\n$1\trequire_once $bgtfw_configs['framework']['includes_dir'] . 'class-boldgrid-framework-styles.php';\n$1}\n\n$1$bgtfw_styles = new BoldGrid_Framework_Styles( $bgtfw_configs );\n$1$bgtfw_styles->enqueue_fontawesome();\n\n"))
.pipe(gulp.dest(config.dist + '/includes/kirki'));
// Get Kirki CSS.
gulp.src(config.node_modules + '/kirki-toolkit/assets/**/*.{css,map,json}')
Expand Down

0 comments on commit 00fb343

Please sign in to comment.