Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
grunt-css-include-combine
Advanced tools
. Compress CSS files.
. Combine files via @include
. npm install grunt-css-include-combine -l
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-contrib-cssmin --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-contrib-cssmin');
This plugin was designed to work with Grunt 0.4.x. If you're still using grunt v0.3.x it's strongly recommended that you upgrade, but in case you can't please use v0.3.2.
Create a main CSS file with your include's instructions, like:
@include("jquery-mobile/jquery-mobile.css");
@include("bootstrap/bootstrap.css");
Then, on your Gruntfile:
grunt.initConfig({
'css-include-combine': {
'libs': {
// include's on CSS will use this PATH as it's relative
// path. This also is applied to resources url's.
relativeDir: 'path',
// your main file (see example above)
main: 'libsDependencies.css',
// the generated file
out: '3rdPartyLibs.css'
}
}
});
grunt.loadNpmTasks('grunt-css-include-combine');
By typing on command line the following will generate the 3rd party libs minified file. If you want to add more file just edit the CSS main file and run Grunt!
grunt "css-include-combine:libs"
FAQs
Grunt task to combine CSS files by @include instruction
The npm package grunt-css-include-combine receives a total of 3 weekly downloads. As such, grunt-css-include-combine popularity was classified as not popular.
We found that grunt-css-include-combine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.