Skip to content

About

🌁 CSS Raw loader module for Webpack

Topics

Resources

Stars

13 stars

Watchers

1 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

Repository files navigation

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

About

🌁 CSS Raw loader module for Webpack

Topics

Resources

Stars

13 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages