grunt-contrib-requirejs icon indicating copy to clipboard operation
grunt-contrib-requirejs copied to clipboard

`csso.justDoIt()` method is deprecated, use `csso.minify()` instead

Open alundiak opened this issue 9 years ago • 0 comments

I use grunt-contrib-requirejs v 1.0.0 And in my js folder of code there are many js files, including jquery src folder (with intro.js and outro.js) I also have optimizeCss = 'standard'

csso.justDoIt() method is deprecated, use csso.minify() instead Compressed CSS output to 97%. Error: Cannot parse file: ....../bower_components/....../jquery/src/intro.js for comments. Skipping it. Error is: Error: Line 45: Unexpected end of input

When I disable optimizeCss by setting 'none' option I don't have this error.

Why requirejs task for JS files with enabled css optimization fails when it sees not valid JS code?

Here is full requirejs task:

requirejs: {
    compile: {
        options: {
            baseUrl: srcDir,
            dir: buildDir,
            mainConfigFile: [
                srcDir + '/init.js'
            ],
            wrapShim: true,
            optimizeCss: 'standard' or  'none',
            optimize: 'uglify2',
            paths: {
                requireLib: 'bower_components/requirejs/index'
            },
            name: 'init',
            include: ['requireLib'],
            pragmasOnSave: {
                excludeRequireCss: true
            }
        }
    }
},

alundiak avatar Oct 18 '16 13:10 alundiak