SCSS生成的CSS在CSS文件的底部有'NULNULNULNULNUL'

时间:2014-01-03 14:51:28

标签: sass compass-sass

我正在使用SASS预处理器,当生成css时,我在文件底部有一行NUL ..有没有人遇到过这个或知道如何解决它?

我使用grunt将sass编译为css ..如此块所示..

        compass: {
        dist: {
            options: {
                require: 'rgbapng',
                sassDir: 'assets/sass',
                environment: 'production',
                cssDir: 'assets/stylesheets',
                imagesDir: 'assets/images',
                httpPath: "assets/",
                assetCacheBuster: true,
                noLineComments: true,
                relativeAssets: true,
                boring: false,
                debugInfo: true,
                outputStyle: 'compressed',
                // CSS output mode. Can be: nested, expanded, compact, compressed.
                // Please see http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
                // for descriptions of the options available
                raw: 'preferred_syntax = :scss\n'
            }
        },
        dev: {
            options: {
                require: 'rgbapng',
                sassDir: 'assets/sass',
                environment: 'development',
                cssDir: 'assets/stylesheets',
                imagesDir: 'assets/images',
                httpPath: "assets/",
                assetCacheBuster: true,
                noLineComments: true,
                relativeAssets: true,
                boring: false,
                debugInfo: false,
                outputStyle: 'expanded',
                // CSS output mode. Can be: nested, expanded, compact, compressed.
                raw: 'preferred_syntax = :scss\n'
            }
        }
    },

enter image description here

1 个答案:

答案 0 :(得分:0)

我相信这是因为我在其他地方而不是本地开发环境中使用服务器,后来我收到了提交给我们SVN的文件。