Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

SourceMapDevToolPlugin does not work - ignored #426

Closed
zelphir opened this issue Mar 8, 2019 · 2 comments
Closed

SourceMapDevToolPlugin does not work - ignored #426

zelphir opened this issue Mar 8, 2019 · 2 comments

Comments

@zelphir
Copy link

zelphir commented Mar 8, 2019

After #350 (using optimize-css-assets-webpack-plugin to minify css files), webpack.SourceMapDevToolPlugin is ignored (NMFR/optimize-css-assets-webpack-plugin#99), that means that is not possible to create custom sourcemaps for CSS files

@zelphir
Copy link
Author

zelphir commented Mar 8, 2019

workaround:

in webpack config:

    const filteredMinimizers = config.optimization.minimizer.filter(
      (plugin) => plugin.constructor.name !== 'OptimizeCssAssetsWebpackPlugin'
    );
    config.optimization.minimizer = filteredMinimizers;

And use postcss to minify css files.

@timneutkens
Copy link
Member

Hi, thanks for creating an issue. We currently recommend using https://nextjs.org/docs/basic-features/built-in-css-support as the plugins have been deprecated in favor of the built-in support.

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

No branches or pull requests

2 participants