Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on Feb 21, 2024 via pnpm

css-loader 6.8.1

css loader module for webpack
Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
6
licenses
70
MIT
10
ISC
7
BSD-2-Clause
7
other licenses
BSD-3-Clause
4
Apache-2.0
2
CC-BY-4.0
1
Package created
7 Apr 2012
Version published
28 May 2023
Maintainers
3
Total deps
94
Direct deps
9
License
MIT

Issues

2

1 high severity issue

high
Recommendation: Read and validate the license terms
via: webpack@5.90.3
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: webpack@5.90.3
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
70 Packages, Including:
@jridgewell/gen-mapping@0.3.3
@jridgewell/resolve-uri@3.1.2
@jridgewell/set-array@1.1.2
@jridgewell/source-map@0.3.5
@jridgewell/sourcemap-codec@1.4.15
@jridgewell/trace-mapping@0.3.22
@types/eslint-scope@3.7.7
@types/eslint@8.56.2
@types/estree@1.0.5
@types/json-schema@7.0.15
@types/node@20.11.19
@webassemblyjs/ast@1.11.6
@webassemblyjs/floating-point-hex-parser@1.11.6
@webassemblyjs/helper-api-error@1.11.6
@webassemblyjs/helper-buffer@1.11.6
@webassemblyjs/helper-numbers@1.11.6
@webassemblyjs/helper-wasm-bytecode@1.11.6
@webassemblyjs/helper-wasm-section@1.11.6
@webassemblyjs/ieee754@1.11.6
@webassemblyjs/utf8@1.11.6
@webassemblyjs/wasm-edit@1.11.6
@webassemblyjs/wasm-gen@1.11.6
@webassemblyjs/wasm-opt@1.11.6
@webassemblyjs/wasm-parser@1.11.6
@webassemblyjs/wast-printer@1.11.6
acorn-import-assertions@1.9.0
acorn@8.11.3
ajv-keywords@3.5.2
ajv@6.12.6
browserslist@4.23.0
buffer-from@1.1.2
chrome-trace-event@1.0.3
commander@2.20.3
css-loader@6.8.1
cssesc@3.0.0
enhanced-resolve@5.15.0
es-module-lexer@1.4.1
escalade@3.1.2
events@3.3.0
fast-deep-equal@3.1.3
fast-json-stable-stringify@2.1.0
has-flag@4.0.0
jest-worker@27.5.1
json-parse-even-better-errors@2.3.1
json-schema-traverse@0.4.1
loader-runner@4.3.0
merge-stream@2.0.0
mime-db@1.52.0
mime-types@2.1.35
nanoid@3.3.7

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
10 Packages, Including:
electron-to-chromium@1.4.677
graceful-fs@4.2.11
icss-utils@5.1.0
lru-cache@6.0.0
picocolors@1.0.0
postcss-modules-extract-imports@3.0.0
postcss-modules-scope@3.1.1
postcss-modules-values@4.0.0
semver@7.6.0
yallist@4.0.0

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
eslint-scope@5.1.1
esrecurse@4.3.0
estraverse@4.3.0
estraverse@5.3.0
glob-to-regexp@0.4.1
terser@5.27.2
uri-js@4.4.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
@xtuc/ieee754@1.2.0
serialize-javascript@6.0.2
source-map-js@1.0.2
source-map@0.6.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
2 Packages, Including:
@webassemblyjs/leb128@1.11.6
@xtuc/long@4.2.2

Creative Commons Attribution 4.0 International

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
caniuse-lite@1.0.30001588
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

9
All Dependencies CSV
β“˜ This is a list of css-loader 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
icss-utils5.1.03.93 kBISC
prod
postcss-modules-extract-imports3.0.04.16 kBISC
prod
postcss-modules-local-by-default4.0.46.22 kBMIT
prod
postcss-modules-scope3.1.14.71 kBISC
prod
postcss-modules-values4.0.03.61 kBISC
prod
postcss-value-parser4.2.07.81 kBMIT
prod
postcss8.4.35193.05 kBMIT
prod peer
semver7.6.026.57 kBISC
prod
webpack5.90.34.6 MBMIT
prod peer
1
1

Visualizations

Frequently Asked Questions

What does css-loader do?

The css-loader is a module for webpack that interprets @import and url() like import/require() and resolves them. It navigates through the CSS file identified by the @import and url() functions, kind of like how webpack does it for JavaScript files. This allows the bundling of CSS dependencies for your project.

How do you use css-loader?

Using css-loader requires you first to install it. This is done through several package managers. You can use npm, where you'll run npm install --save-dev css-loader. Alternatively, with yarn, you just have to run yarn add -D css-loader, or with pnpm, where you'll run pnpm add -D css-loader.

After installing css-loader, you need to add it to your webpack config file. It's done like so:

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: ["style-loader", "css-loader"],
      },
    ],
  },
};

In the file.js, you can import css like:

import css from "file.css";

You then run webpack through your preferred method. css-loader lets you add options to fully customize how it works. Some options include url, import, modules, sourceMap, importLoaders, esModule, and exportType. Each of these options can be defined in the webpack config file within the css-loader options.

Where are the css-loader docs?

The css-loader docs can be accessed directly from the webpack-contrib GitHub repository or from the css-loader README. The docs provide a comprehensive and detailed guide on how to use css-loader, with some examples and descriptions of the options.