File Info Loader
A loader for webpack that lets you get file as a string as well as file full path.
Install
npm install --save-dev file-info-loader
Usage
Use the loader either via your webpack config, CLI or inline.
Inline
In your application
;; console;// {path: 'FULL-FILE-PATH', content: 'FILE RAW CONTENT'} console;// {path: 'FULL-FILE-PATH', content: 'FILE RAW CONTENT'}
Via webpack config
webpack.config.js
moduleexports = module: rules: test: /\.txt$/ use: 'file-info-loader'
In your application
;
Maintainers
Vladimir Shafikov