UNPKG

ffbt

Version:

Build a Typescript app without pain

24 lines (23 loc) 707 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const layer = (projectConfig) => { const thresholdInBytes = projectConfig.env.staticFilesSizeThresholdKb * 1024; return { module: { rules: [ { test: /\.(jpe?g|png|gif|ttf|eot|svg|woff(2)?)(\?[a-z0-9=&.]+)?$/, use: [ { loader: "url-loader", options: { limit: thresholdInBytes, }, }, ], } ] }, }; }; module.exports = layer;