css-loader
CSS Loader
File Explorer
- dependency-review.yml
- nodejs.yml
- commit-msg
- pre-commit
- index.js
- postcss-icss-parser.js
- postcss-import-parser.js
- postcss-url-parser.js
- api.js
- getUrl.js
- noSourceMaps.js
- sourceMaps.js
- cjs.js
- index.js
- options.json
- utils.js
- camelCase.test.js.snap
- esModule-option.test.js.snap
- exportType.test.js.snap
- import-option.test.js.snap
- loader.test.js.snap
- modules-option.test.js.snap
- sourceMap-option.test.js.snap
- url-option.test.js.snap
- validate-options.test.js.snap
- index.js
- index-commonjs.js
- index.css
- index.js
- template-commonjs.js
- template.js
- img.png
- imported.css
- source.css
- source.js
- Roboto-Regular.eot
- Roboto-Regular.svg
- Roboto-Regular.ttf
- Roboto-Regular.woff
- Roboto-Regular.woff2
- index.js
- package.json
- test.css
- second.css
- test.css
- tilde.css
- index.cjs
- index.js
- package.json
- style.css
- package.json
- test.css
- first.css
- absolute-url.css
- absolute-url.js
- alias.css
- circular-nested.css
- circular.css
- circular.js
- dark.css
- data-uri.css
- data-uri.js
- deep-import-with-layer.css
- deep-import-with-media.css
- deep-import-with-supports.css
- deep-layer-base.css
- deep-layer-first-level.css
- deep-layer.css
- extensions-imported.mycss
- extensions.css
- extensions.js
- false-alias.css
- false-alias.js
- img.png
- import-absolute.js
- import-conditionNames.css
- import-conditionNames.js
- import-deep-with-supports-and-media.css
- import-file-protocol.js
- import-multiple-unnamed-layer.css
- import-multiple-with-layer.css
- import-order.css
- import-order.js
- import-server-relative-url.css
- import-server-relative-url.js
- import-stringified.js
- import-unnamed-layer.css
- import-with-layer-and-supports-and-media.css
- import-with-layer-and-supports.css
- import-with-layer-unnamed.css
- import-with-layer.css
- import-with-media.css
- import-with-supports-and-media.css
- import-with-supports.css
- import.css
- import.js
- issue-683.css
- issue-683.js
- list-of-media-queries.css
- list-of-media-queries.js
- my.scss
- order-1.css
- order-2.css
- order-3-1.css
- order-3.css
- order-4-1.css
- order-4-2-1.css
- order-4-2-2.css
- order-4-2.css
- order-4.css
- order.css
- order.js
- other-query.css
- query.css
- relative.css
- something.css
- te'st.css
- test test.css
- test-media.css
- test-nested-media.css
- test-other.css
- test.css
- top-relative.css
- unresolved.css
- unresolved.js
- url.css
- webpackIgnore-order.css
- webpackIgnore-order.js
- css.module.css
- imported-by-module-scss.css
- imported-by-postcss.css
- imported-by-pure.css
- imported-by-scss.css
- index.js
- postcss.css
- pure.css
- scss.module.scss
- scss.scss
- index.js
- index.modules.css
- alias-1.css
- alias.css
- composes-absolute.js
- composes-css-style-sheet-only-locals.js
- composes-css-style-sheet.js
- composes-duplicate.css
- composes-duplicate.js
- composes-export-only-locals.js
- composes-named.js
- composes-preprocessors.css
- composes-preprocessors.js
- composes.css
- composes.js
- global.css
- global.js
- imported-simple.css
- less-file.less
- multiple.css
- multiple.js
- relative.css
- scss-file.scss
- something.css
- test-other.css
- top-relative.css
- values.css
- button.css
- primary-button.css
- secondary-button.css
- source.css
- source.js
- exportGlobals.css
- exportGlobals.js
- exportGlobals.css
- exportGlobals.js
- exportGlobals.css
- exportGlobals.js
- imported.css
- source.css
- source.js
- composeSource.css
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source-only-locals.js
- source.css
- source.js
- vars.css
- source.css
- source.js
- vars.css
- source.css
- source.js
- source.css
- source.js
- icss.js
- relative.icss.css
- unknown.css
- issue-1033.css
- issue-1033.js
- global.css
- issue-1063.js
- local.css
- pure.css
- issue-1191-custom.css
- issue-1191.css
- issue-1191.js
- index.module.css
- issue-1223.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- dep.css
- source.css
- source.js
- foo.scss
- source.js
- source.scss
- color.css
- style.css
- style.css
- style.css
- resolving-from-node_modules.css
- resolving-from-node_modules.js
- source.css
- source.js
- button.css
- button.js
- issue-966.css
- issue-966.js
- toolbar.css
- path-placeholder.css
- path-placeholder.js
- file.with.many.dots.in.name.css
- file.with.many.dots.in.name.js
- issue-995.css
- issue-995.js
- localIdentName-export-only-locals.js
- localIdentName.css
- localIdentName.js
- localsConvention.css
- localsConvention.js
- icss.js
- relative.icss.css
- vars.icss.css
- entry.css
- modules-2.js
- modules-extract.js
- modules.js
- no-modules.css
- not-specified.js
- relative.module.css
- relative.modules.css
- style.modules.css
- index.css
- index.js
- index.css
- index.js
- composes.css
- composes.js
- values.css
- index.css
- index.js
- exportsAs.css
- index.js
- index.css
- index.js
- index.css
- index.js
- template.js
- index.css
- index.js
- template.js
- css.css
- css.js
- index.css
- package.json
- index.css
- index.js
- order-1.css
- order-2.css
- two.css
- one.css
- source.css
- source.js
- pure.css
- pure.js
- css.css
- css.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- img.png
- source.css
- source.js
- source.css
- source.js
- file.css
- source.css
- source.js
- file.css
- source.css
- source.js
- file1.css
- file2.css
- source.css
- source.js
- file.css
- source.css
- source.js
- source.css
- source.js
- img.png
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- file.css
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- img img.png
- img.png
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- file.css
- source.css
- source.js
- file1.css
- file2.css
- source.css
- source.js
- file1.css
- source.css
- source.js
- file1.css
- source.css
- source.js
- file1.css
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- source.css
- source.js
- img.png
- shared.css
- source.css
- source.js
- index.js
- imported.css
- other-imported.css
- source.css
- source.js
- img1x.png
- img2x.png
- source.css
- source.js
- css-style-sheet.js
- source.js
- source.scss
- nested.css
- nested.postcss.css
- base.less
- base.styl
- basic-less.js
- basic-postcss.js
- basic-scss.js
- basic-styl.js
- basic.css
- basic.js
- basic.postcss.css
- basic.scss
- extract.js
- with-query.css
- with-query.js
- img.png
- other.png
- font.ttf
- img-single.png
- img.png
- absolute-url.css
- absolute-url.js
- false-alias.css
- false-alias.js
- font with spaces.eot
- font.eot
- font.svg
- font.woff
- font.woff2
- ignore-plugin.css
- ignore-plugin.js
- image.svg
- img img.png
- img'''img.png
- img'() img.png
- img'img.png
- img(img.png
- img)img.png
- img-from-imported.png
- img-simple.png
- img.png
- img1x.png
- img2x.png
- img3x.png
- imported.css
- logo.png
- many-urls.js
- MCEP.js
- other-img.png
- resolve-extensions.css
- resolve-extensions.js
- something.png
- url-absolute.js
- url-css-style-sheet.js
- url-file-protocol.js
- url-unresolved.css
- url-unresolved.js
- url.css
- url.js
- basic-built-in-css-support.js
- basic-css-style-sheet-with-import.js
- basic-css-style-sheet.css
- basic-css-style-sheet.js
- basic-javascript-and-css-style-sheet.js
- basic-string-css-modules.js
- basic-string.js
- basic.css
- basic.js
- empty.css
- empty.js
- error.css
- error.js
- imported.css
- index-loader-syntax-left-and-right.js
- index-loader-syntax-sass.css
- index-loader-syntax-sass.modules.css
- index-loader-syntax.css
- index-loader-syntax.js
- index-loader-syntax.modules.css
- invisible-space.css
- invisible-space.js
- other-loader-query.css
- other-loader-query.js
- simple-1.css
- simple-style.js
- simple.css
- simple.js
- source-map-loader.js
- webpackIgnore.css
- webpackIgnore.js
- ast-loader.js
- compile.js
- execute.js
- get-json.js
- getCompiler.js
- getErrors.js
- getExecutedCode.js
- getModuleSource.js
- getWarnings.js
- index.js
- normalizeErrors.js
- preLoader.js
- readAsset.js
- readAssets.js
- string-loader.js
- svg-color-loader.js
- url-loader.js
- webpack-contrib_css-loader_master_test_fixtures_url_img_fc0003ff99956138ca55.png
- lock.json
- webpack-contrib_css-loader_master_test_fixtures_url_img_fc0003ff99956138ca55.png
- lock.json
- api.test.js.snap
- getUrl.test.js.snap
- api.test.js
- getUrl.test.js
- camelCase.test.js
- cjs.test.js
- esModule-option.test.js
- exportType.test.js
- import-option.test.js
- loader.test.js
- modules-option.test.js
- sourceMap-option.test.js
- url-option.test.js
- validate-options.test.js
- .cspell.json
- .editorconfig
- .eslintignore
- .eslintrc.js
- .gitattributes
- .gitignore
- .prettierignore
- babel.config.js
- CHANGELOG.md
- commitlint.config.js
- jest.config.js
- LICENSE
- lint-staged.config.js
- package-lock.json
- package.json
- README.md
# Installation Guide
nodeSetup Steps
npm install
Install project dependencies.
npm test
Run tests to verify dependencies and source code.
Key Commands
npm install
Install project dependencies defined in package.json.
npm test
Run the test suite based on Jest.
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
edit
View Details ▼
edit
A terminal-based text editor from Microsoft.
edit {{path/to/file}}
Open a file:
tldr run-mailcap
View documentation for the original command:
<Ctrl f>{{pattern}}<Enter>
Search for a pattern:
eval
View Details ▼
eval
Execute arguments as a single command in the current shell and return its result.
eval "{{echo foo}}"
Call `echo` with the "foo" argument:
eval "{{foo=bar}}"
Set a variable in the current shell:
npm install
View Details ▼
npm install
Install Node packages.
npm {{[i|install]}}
Install dependencies listed in `package.json`:
npm {{[i|install]}} {{package_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}
Download the latest version of a package and add it to the list of dev dependencies in `package.json`:
pnpm
View Details ▼
pnpm
Fast, disk space efficient package manager for Node.js.
Manage Node.js projects and their module dependencies.
pnpm init
Create a `package.json` file:
pnpm {{[i|install]}}
Download all the packages listed as dependencies in `package.json`:
pnpm add {{module_name}}@{{version}}
Download a specific version of a package and add it to the list of dependencies in `package.json`:
webpack
View Details ▼
webpack
Bundle a web project's js files and other assets into a single output file.
webpack {{app.js}} {{bundle.js}}
Create a single output file from an entry point file:
webpack {{app.js}} {{bundle.js}} --module-bind '{{css=css}}'
Load CSS files too from the JavaScript file (this uses the CSS loader for CSS files):
webpack {{[-c|--config]}} {{webpack.config.js}} --progress
Pass a configuration file (with e.g. the entry script and the output filename) and show compilation progress:
yarn
View Details ▼
yarn
JavaScript and Node.js package manager alternative.
yarn global add {{module_name}}
Install a module globally:
yarn install
Install all dependencies referenced in the `package.json` file (the `install` is optional):
yarn add {{module_name}}@{{version}}
Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency):
