source:
frontend/node_modules/postcss-import/lib/load-content.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 242 bytes | |
| Line | |
|---|---|
| 1 | "use strict" |
| 2 | |
| 3 | const readCache = require("read-cache") |
| 4 | const dataURL = require("./data-url") |
| 5 | |
| 6 | module.exports = filename => { |
| 7 | if (dataURL.isValid(filename)) { |
| 8 | return dataURL.contents(filename) |
| 9 | } |
| 10 | |
| 11 | return readCache(filename, "utf-8") |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
