1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

gulp task for webfonts

This commit is contained in:
Kyle Spearrin
2018-08-08 12:47:54 -04:00
parent 057b684f02
commit 9e7438e0b0
7 changed files with 1613 additions and 103 deletions

View File

@@ -2,7 +2,6 @@ const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const GoogleFontsPlugin = require("google-fonts-webpack-plugin");
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin;
@@ -84,9 +83,8 @@ const renderer = {
options: {
name: '[name].[ext]',
outputPath: 'fonts/',
publicPath: '../'
}
}]
},
}],
},
{
test: /\.scss$/,
@@ -105,19 +103,6 @@ const renderer = {
]
},
plugins: [
new GoogleFontsPlugin({
fonts: [
{
family: 'Open Sans',
variants: ['300', '300italic', '400', '400italic', '600', '600italic',
'700', '700italic', '800', '800italic'],
subsets: ['cyrillic', 'cyrillic-ext', 'greek', 'greek-ext', 'latin', 'latin-ext']
}
],
formats: ['woff2'],
path: 'fonts/',
filename: 'css/fonts.css'
}),
new AngularCompilerPlugin({
tsConfigPath: 'tsconfig.json',
entryModule: 'src/app/app.module#AppModule',