Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin is breaking the CSS sourcemap #25

Open
nelsieborja opened this issue Sep 19, 2018 · 2 comments
Open

The plugin is breaking the CSS sourcemap #25

nelsieborja opened this issue Sep 19, 2018 · 2 comments

Comments

@nelsieborja
Copy link

nelsieborja commented Sep 19, 2018

I have raised the issue here as well thought it was the mini-css-extract-plugin issue but just when I commented the RTL plugin from my Webpack config the sourcemap started working as expected.

Webpack config is straight forward:

// ...
    plugins: [
        new MiniCssExtractPlugin({
            filename: 'app-en.css'
        }),
        new WebpackRTLPlugin({
           filename: 'app-ar.css'
        })
    ],
    devtool: "source-map",
    module: {
        rules: [
            {
                test: /\.scss$/,
                use: [
                    MiniCssExtractPlugin.loader,
                    {
                        loader: 'css-loader',
                        options: { sourceMap: true },
                    },
                    {
                        loader: 'sass-loader',
                        options: { sourceMap: true },
                    },
                ]
// ...

What could be the issue? Also noticed, the source reference files are getting deleted, you can see this on the Browser's devtool under Sources tab and under webpack:// tree

@saschask
Copy link

saschask commented Dec 3, 2019

Are there any updates or workarounds meanwhile? I'm currently facing the same issue and would also like to have working source-maps for both the actual and the RTL file.

@aprudnikoff
Copy link

I'm having the same question here. Any news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants