I have a bunch of different css files being generated in css/
folder with help of libsass. Also I do have normalize.css
already placed in css/
folder to allow normalization of css in all browsers. I'm using npm as build tool, and my package.json
consists something like this:
{
.....
"scripts": {
"test": "npm run lint",
"lint": "csslint css/*.css",
"build": "node-sass sass/ -o css/",
"postbuild": "cat css/*.css | cleancss -o css/main.min.css"
},
.....
}
At the build step I'm generating
css
files and in post-build step I'm concatenating all css files into one minified css file.
But during post-build step, the content of normalize.css
file should come before any other css file content, however the behavior is inconsistent. I need to make sure that normalize stuff comes ahead of all other css files, any heads up would be helpful.
Tldr- Concatenation of bunch of css files results in normalize.css being appended in middle or last. I need it at start of concatenated css file.
Thanks.