I think I've got the path, targetPath and fontPath configured correctly, but I'm having an issue now with targetPath.
I'm working on a Laravel app and have my gulpfile located in the project root. So my directory structure looks like:
My gulp configuration code for this plugin is as follows:
var fontName = 'icons';
gulp.task('icon-font', function(){
gulp.src(['app/assets/icons/*.svg'])
.pipe(iconfontcss({
fontName: fontName,
path: 'app/assets/scss/templates/_icons.scss',
targetPath: '../../../app/assets/scss/components/_icons.scss',
fontPath: '../fonts/'
}))
.pipe(iconfont({
fontName: fontName
}))
.pipe(gulp.dest('public/assets/fonts/'));
});
The problem I'm running into is this: the targetPath is supposed to go into app/assets/scss/components/ but its going into public/assets/scss/components instead. It's like "app" is being replaced by "public" in the path.
Am I doing something wrong or is this an issue with the plugin?
I think I've got the
path,targetPathandfontPathconfigured correctly, but I'm having an issue now withtargetPath.I'm working on a Laravel app and have my gulpfile located in the project root. So my directory structure looks like:
My gulp configuration code for this plugin is as follows:
The problem I'm running into is this: the
targetPathis supposed to go intoapp/assets/scss/components/but its going intopublic/assets/scss/componentsinstead. It's like "app" is being replaced by "public" in the path.Am I doing something wrong or is this an issue with the plugin?