V
V
Vyacheslav Lebedev2015-01-25 18:11:43
Grunt.js
Vyacheslav Lebedev, 2015-01-25 18:11:43

How to allow @ symbol to minify in grunt uglify (css)?

Good evening! :)
I collect .css files with a primer, but when minimizing (uglify), an error occurs due to the @ symbol (font import). Help with a problem :)

>> Uglifying source build/styles.css failed.
Warning: Uglification failed.
Unexpected character '@'. 
Line 1 in build/styles.css
 Use --force to continue.

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aen, 2015-01-25
@slavikse

Better use https://www.npmjs.com/package/grunt-contrib-cssmin
Uglifyjs not for css.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question