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

加入 css-minimizer-webpack-plugin 导致js 不压缩 #21

Closed
ckken opened this issue Dec 7, 2020 · 2 comments
Closed

加入 css-minimizer-webpack-plugin 导致js 不压缩 #21

ckken opened this issue Dec 7, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ckken
Copy link
Contributor

ckken commented Dec 7, 2020

config.optimization.minimizer('css').use(CssMinimizerPlugin, [
      {
        parallel: true,
        sourceMap: false,
        minimizerOptions: {
          preset: [
            'default',
            {
              discardComments: {removeAll: true},
            },
          ],
        },
      },
    ])
@ckken ckken added the bug Something isn't working label Dec 7, 2020
@ckken ckken self-assigned this Dec 7, 2020
@ckken
Copy link
Contributor Author

ckken commented Dec 10, 2020

利用 cssnano 暂时解决问题

@ckken ckken closed this as completed Dec 14, 2020
@ckken
Copy link
Contributor Author

ckken commented Dec 14, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant