@microsoft/loader-cased-file
TypeScript icon, indicating that this package has built-in type declarations

1.12.1 • Public • Published

loader-cased-file

This is a wrapper for webpack's file-loader that can be used to modify the casing of the resulting filename. This is useful e.g. when using a content delivery network (CDN) that only allows lowercase filenames.

installation

npm install @microsoft/loader-cased-file --save-dev

Usage

Documentation: Using loaders

The only additional functionality this loader offers is a :lower attribute on the [name] filename template placeholder that forces the filename to be lowercased in the resulting bundle.

Example

require("@microsoft/loader-cased-file?name=[name:lower]_[hash].[ext]!asset.png");

Readme

Keywords

none

Package Sidebar

Install

npm i @microsoft/loader-cased-file

Homepage

aka.ms/spfx

Weekly Downloads

1,719

Version

1.12.1

License

SEE LICENSE IN "EULA" FOLDER

Unpacked Size

1.69 MB

Total Files

53

Last publish

Collaborators

  • microsoft1es
  • odspnpm