Skip to content

Plugin is not respecting the default sourcemap output #101

@enmanuelduran

Description

@enmanuelduran

I'm using this config to generate the sourcemaps on my site on production:

new OptimizeCSSAssetsPlugin({
    cssProcessor: require('cssnano'),
    cssProcessorOptions: {
        map: {
            inline: false,
            annotation: true,
        },
    },
}),

and webpack output sourceMapFilename is:

output: { 
    sourceMapFilename: sourcemaps/[file].map
}

But the plugin is sending the sourcemaps to the same folder in which the css output files are located instead of sourceMapFilename using the sourcemap folder.

Without using the plugin all the sourcemaps work as expected and go to the sourceMapFilename point but when adding the plugin it just ignores it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions