Skip to content

alikr/webpack-require-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

webpack-require-css

webpack-require-css

Just load css file

Install

npm install webpack-require-css --save-dev

Useage

page.js

require("css/index.css");

webpack.config.js

webpack 2

module:{
        rules:[
            {
                test: /\.css$/,
                loader:"webpack-require-css",
                options:{
                    publicPath:'/static/css/'
                }
            }
        ]
    }

webpack 1.x.x

module:{
        loaders:[
            {
                test: /\.css$/,
                loader: 'webpack-require-css?publicPath=/css/'
            }
        ]
    }

About

webpack-require-css

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published