I would like to know if it is possible to read a .CSHTML file with grunt-uncss, because I searched and tried and so far I have not had any results.
I would like to know if it is possible to read a .CSHTML file with grunt-uncss, because I searched and tried and so far I have not had any results.
As this comment on GitHub I was able to solve my problem the code looks like this: / p>
module.exports = function (grunt) {
grunt.initConfig({
uncss: {
dist: {
files: {
'Content/home.css': ['index.html']
},
options: {
urls: ['MinhaPagina/Home']
}
}
}
});
// Load the plugins
grunt.loadNpmTasks('grunt-uncss');
// Default tasks.
grunt.registerTask('uncss', ['uncss']);
};
EDIT : There must be an empty% void, which in my case is arquivo.html
for the operation