mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(ionicons): update ionicons through npm
This commit is contained in:
13
gulpfile.js
13
gulpfile.js
@ -332,8 +332,9 @@ gulp.task('sass', function() {
|
||||
'ionic/ionic.md.scss',
|
||||
'ionic/ionic.scss'
|
||||
])
|
||||
.pipe(sass()
|
||||
.on('error', sass.logError)
|
||||
.pipe(sass({
|
||||
includePaths: [__dirname + '/node_modules/ionicons/dist/scss/'],
|
||||
}).on('error', sass.logError)
|
||||
)
|
||||
.pipe(autoprefixer(buildConfig.autoprefixer))
|
||||
.pipe(gulp.dest('dist/bundles/'))
|
||||
@ -343,9 +344,11 @@ gulp.task('sass', function() {
|
||||
});
|
||||
|
||||
gulp.task('fonts', function() {
|
||||
return gulp.src(['ionic/**/*.ttf', 'ionic/**/*.woff', 'ionic/**/*.woff2'])
|
||||
.pipe(gulp.dest('dist'))
|
||||
.pipe(gulp.dest('dist/bundles'));
|
||||
gulp.src([
|
||||
'ionic/fonts/*.+(ttf|woff|woff2)',
|
||||
'node_modules/ionicons/dist/fonts/*.+(ttf|woff|woff2)'
|
||||
])
|
||||
.pipe(gulp.dest('dist/fonts'));
|
||||
});
|
||||
|
||||
require('./scripts/snapshot/snapshot.task')(gulp, argv, buildConfig);
|
||||
|
Reference in New Issue
Block a user