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

Use Clean-CSS instead of cssnano #3

Closed
matzeeable opened this issue Feb 23, 2018 · 0 comments
Closed

Use Clean-CSS instead of cssnano #3

matzeeable opened this issue Feb 23, 2018 · 0 comments
Assignees

Comments

@matzeeable
Copy link
Member

matzeeable commented Feb 23, 2018

Use https://github.com/leodido/postcss-clean
npm install --save-dev postcss-clean

postcss.config.js

module.exports = ({ file, options, env }) => ({
    plugins: [
        require('autoprefixer')
    ].concat(env === 'production' || env === 'umd' ? [require('postcss-clean')(options.clean)] : [])
});

webpack.config.js

loader: 'postcss-loader',
options: {
	config: {
		ctx: {
			clean: {}
		}
	}
}
@matzeeable matzeeable self-assigned this Feb 23, 2018
matzeeable pushed a commit that referenced this issue Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant