Skip to content

Devtool: "source-map" dont work in webpack.development.js #729

@RTDC

Description

@RTDC

Hello,
I can't get the SCSS source maps to show...
Do you know how to fix this, please?

webpack.development.js

`const { configureDevServer } = require('./webpack.parts');
const { HotAcceptPlugin } = require('hot-accept-webpack-plugin');
const webpack = require('webpack');

exports.developmentConfig = ({ port, publicPath, serverAddress, siteURL, entriesArray }) => ({
devtool: "source-map",
devServer: configureDevServer(serverAddress, publicPath, port, siteURL),
plugins: [
new webpack.HotModuleReplacementPlugin(),
new HotAcceptPlugin({
test: Object.keys(entriesArray).map(el => ${el}.js)
})
]
});
`
I’ve set devtool: "source-map" in my config, but the browser doesn’t display the SCSS source maps in the console.

Any idea why this might be happening?
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeferredIt requires more time, context, or resources before it can be addressed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions