CSS Sourcemap Webpack Plugin
This is a webpack plugin that simplifies the usage of CSS source maps.
Installation
Install the plugin with npm:
$ npm install css-sourcemaps-webpack-plugin --save-dev
Usage
var CssSourcemapPlugin = ;moduleexports = entry: 'index.js' output: path: 'dist' filename: 'index_bundle.js' module: loaders: test: /\.less$/ loader: 'style!css!less' plugins:
Production
You can easily disable the plugin for your production build:
var CssSourcemapPlugin = ;moduleexports = entry: 'index.js' output: path: 'dist' filename: 'index_bundle.js' module: loaders: test: /\.scss$/ loader: 'style!css!sass' plugins: disable: true