UNPKG

webpack-typescript-builder

Version:

Webpack config builder for typescript, styles (css and sass), fonts and images.

18 lines (17 loc) 483 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function createFontsRule(emitFile = true) { return { test: /\.(eot|ttf|otf|woff|woff2|svg)$/, use: { loader: "file-loader", options: { emitFile, limit: 4096, name: "fonts/[name].[contenthash:6].[ext]", }, }, }; } exports.fonts = createFontsRule(); exports.noFonts = createFontsRule(false);