We have web application based on Backbone and Require JS. Currrently we uses Require Js optimizer to optimize the code.
It works well for js files. I could see some css minification steps in Require JS documentation, but it does not work
Is there any way to do it? Consider i have 10 css files.
I use grunt's build tool and then there are a bunch of tasks you can load including grunt-contrib which has both the tasks you need requirejs and mincss . Use this to load grunt-contrib within your grunt file.
grunt.loadNpmTasks('grunt-contrib');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.