wrap-css-loader
CSS Wrap Loader for webpack
Uses loader-utils.getOptions() to get the options, hence avoids any depreciation warnings related to parseQuery()
Install
npm install wrap-css-loader --save-dev
Usage
Basic Usage
moduleexports = /* webpack config */ module: loaders: test: /\.css$/ loader: "wrap-css-loader" options: selector: "namespace" //other loaders
Example with a typical webpack config using babel-loader, sass-loader and extract text plugin
moduleexports = /* Webpack config */ module: loaders: test: /\.js$/ exclude: /node_modules/ loader: 'babel-loader' test: /\.$/ loader: ExtractTextPlugin plugins: '[name].css'