double sourceMappingURL in output
gmoulin opened this issue · 2 comments
gmoulin commented
Hi,
great job on this tool.
I have a problem with processors and a double sourceMappingURL (original + generated) in the output when using grunt-postcss.
The grunt configuration :
postcss: { //grunt-postcss
options: {
map: true,
processors: [
require('autoprefixer-core')({browsers: ['last 2 versions', 'ie 8', 'ie 9']}).postcss,
require('css-mqpacker').postcss,
require('csswring').postcss
]
},
// files
}
And the output :
//rules
/*# sourceMappingURL=global.css.map */@media(min-width:768px){.header__logo{border-bottom-width:0;padding-bottom:20px}.body--scrolled .header__logo{display:block}.mobileNav{display:none}}
/*# sourceMappingURL=global.min.css.map */
If I remove "css-mqpacker" from the processor, no problem but I loose the media queries merging.
I tried to put it before autoprefixer, after csswring, same bug.
I have created an issue on postcss repository too (#106).
hail2u commented
Thanks! I don't know Source Map comment position restricted to the end of file.