How to configure for source map sass in webpack?

Well, actually, the essence in the title. Google didn't tell you or I the request was invalid given)
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
 entry: { main: './src/index.js' },
 output: {
 path: path.resolve(__dirname, 'dist'),
 filename: 'main.js'
},
 module: {
 rules: [
{
 test: /\.js$/,
 exclude: /node_modules/,
 use: {
 loader: "babel-loader"
}
},
{
 test: /\.sass$/,
 use: ExtractTextPlugin.extract(
{
 fallback: 'style-loader',
 use: [
{
 loader: 'css-loader',
 sourceMap: true
},
{
 loader: 'postcss-loader',
 sourceMap: true
},
{
 loader: 'sass-loader',
 sourceMap: true
}
]}

)
}
]
},
 plugins: [
 new ExtractTextPlugin({filename: 'style.css'}),
 new HtmlWebpackPlugin({
 inject: false
 hash: true
 template: './src/index.html',
 filename: 'index.html'
})
]
 };


WELL, the screenshot with Mozilla
skrinshoter.ru/s/220718/trEHnRN3?a
Something is clearly not doing so
June 3rd 19 at 19:04
1 answer
June 3rd 19 at 19:06
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
 entry: { main: './src/index.js' },
 output: {
 path: path.resolve(__dirname, 'dist'),
 filename: 'main.js'
},
 module: {
 rules: [
{
 test: /\.js$/,
 exclude: /node_modules/,
 use: {
 loader: "babel-loader"
}
},
{
 test: /\.sass$/,
 use: ExtractTextPlugin.extract(
{
 fallback: 'style-loader',
 use: [
{
 loader: 'css-loader',
 sourceMap: true
},
{
 loader: 'postcss-loader',
 sourceMap: true
},
{
 loader: 'sass-loader',
 sourceMap: true
}
]}

)
}
]
},
 plugins: [
 new ExtractTextPlugin({filename: 'style.css'}),
 new HtmlWebpackPlugin({
 inject: false
 hash: true
 template: './src/index.html',
 filename: 'index.html'
})
]
 };


WELL, the screenshot with Mozilla
skrinshoter.ru/s/220718/trEHnRN3?a
Something is clearly not doing so - dallas.Spencer commented on June 3rd 19 at 19:09

Find more questions by tags JavaScriptWebpack