PHP 7.4.33
Preview: assign-layer-names.js Size: 466 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/postcss-import/lib/assign-layer-names.js
"use strict"

module.exports = function (layer, node, state, options) {
  layer.forEach((layerPart, i) => {
    if (layerPart.trim() === "") {
      if (options.nameLayer) {
        layer[i] = options
          .nameLayer(state.anonymousLayerCounter++, state.rootFilename)
          .toString()
      } else {
        throw node.error(
          `When using anonymous layers in @import you must also set the "nameLayer" plugin option`
        )
      }
    }
  })
}

Directory Contents

Dirs: 0 × Files: 8
Name Size Perms Modified Actions
466 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
296 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
303 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
872 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
242 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
3.68 KB lrw-r--r-- 2025-03-28 11:04:31
Edit Download
1.30 KB lrw-r--r-- 2025-03-28 11:04:31
Edit Download
1.01 KB lrw-r--r-- 2025-03-28 11:04:31
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).