Socket
Socket
Sign inDemoInstall

css-raw-loader

Package Overview
Dependencies
11
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    css-raw-loader

CSS Raw loader module for Webpack


Version published
Weekly downloads
435
increased by12.11%
Maintainers
1
Install size
680 kB
Created
Weekly downloads
 

Readme

Source

CSS Raw loader for Webpack

Downloads Version ISC License

About

This loader is based on the original CSS loader and the raw loader. A lot of the credit goes to @sokra. I am just enabling my own needs.

It is intended to allow developers to write CSS and use Webpack without having Webpack resolve imports and image URLs from the CSS code. It will import exactly the CSS code that you wrote. It also plays nice with Less, Sass, and the ExtractTextPlugin. It will automatically produce sourcemaps for dev builds and minify for production builds.

Installation

npm install css-raw-loader

Usage

module: {
    loaders: [
        { test: /\.less$/, loader: 'style-loader!css-raw-loader!less-loader' },
        { test: /\.css$/, loader: 'style-loader!css-raw-loader' }
    ]
}

License

MIT

Analytics

FAQs

Last updated on 13 Jul 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc