Skip to content

Commit

Permalink
🐛 [bug]fix font can not generate when build.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanjingling0510 committed Mar 23, 2017
1 parent f735cb5 commit fbce920
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ docs
scripts
src
build
webpack_cache
.eslintignore
.editorconfig
.*.yml
yarn.lock
docs.json
12 changes: 11 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,14 @@ gulp.task('css', function () {
.pipe(gulp.dest('./lib'));
});

gulp.task('default', ['js', 'css']);
gulp.task('fonts', function () {
return gulp.src([
'./components/**/*.eot',
'./components/**/*.svg',
'./components/**/*.ttf',
'./components/**/*.woff',
])
.pipe(gulp.dest('./lib'));
});

gulp.task('default', ['js', 'css', 'fonts']);
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
"main": "lib",
"scripts": {
"start": "node ./scripts/start.js",
"build": "gulp",
"clear": "rm -rf ./docs",
"doc": "npm run clear && webpack --config ./config/webpack.pro.js"
"build": "rm -rf ./lib && gulp",
"doc": "rm -rf ./docs && webpack --config ./config/webpack.pro.js"
},
"devDependencies": {
"autoprefixer": "^6.6.0",
Expand Down Expand Up @@ -64,4 +63,4 @@
"react-date-range": "^0.9.3",
"react-dom": "^15.4.1"
}
}
}

0 comments on commit fbce920

Please sign in to comment.