Skip to content

Commit

Permalink
building standard 14 fonts (#101, #1517)
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Oct 21, 2018
1 parent c1e255d commit 903f767
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ gulp.task('build', function (callback) {
});
});

gulp.task('buildWithStandardFonts', function (callback) {
webpack(require('./webpack-standardfonts.config.js'), function (err, stats) {
if (err) {
throw new PluginError("webpack", err);
}
log("[webpack]", stats.toString({}));
callback();
});
});

gulp.task('test', function () {
return gulp.src(['./tests/**/*.js'])
Expand Down
7 changes: 7 additions & 0 deletions webpack-standardfonts.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var config = require("./webpack.config.js");

var rule = {enforce: 'post', test: /pdfkit[/\\]js[/\\]/, loader: "transform-loader?brfs"};

config.module.rules.push(rule);

module.exports = config;

0 comments on commit 903f767

Please sign in to comment.