
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
karma-less-preprocessor
Advanced tools
save
: [Boolean
] Indicates whether result of compilation should be saved in project directory.paths
: [Array
] of paths to folders that should be used for file lookup when using @import
.compress
: [Boolean
] Indicates whether css should be compressed or not.
options
key could contain any other standard less options as well
For exmaple, rootpath
option is specified in below example configuration
additionalData
:Object
which can contain the Object
modifyVars and/or the Object
globalVars. With those you can tell the less compiler to add global variables or modify existing ones during compilation.module.exports = (config) -> config.set {
basePath: 'src'
preprocessors:
'**/*.coffee': ['coffee']
'resources/**/*.less': ['less']
files: [
'**/*.coffee'
'resources/less/index.less'
]
coffeePreprocessor:
options:
bare: true
sourceMap: false
transformPath: (path) -> path.replace(/\.coffee$/, '.js')
lessPreprocessor:
options:
paths: ['resources/less']
save: true
rootpath: 'target/resources/img'
additionalData:
modifyVars:
'bodyColor': 'grey'
'secondBoxColor': 'blue'
globalVars:
'globalBoxColor': 'red'
transformPath: (path) -> path.replace(/\.less$/, '.compiled.css')
browsers: ['Chrome']
captureTimeout: 6000
hostname: 'localhost'
port: 9876
plugins: [
'karma-coffee-preprocessor'
'karma-less-preprocessor'
'karma-chrome-launcher'
]
singleRun: false
}
FAQs
A Karma plugin. Compile LESS on the fly.
The npm package karma-less-preprocessor receives a total of 268 weekly downloads. As such, karma-less-preprocessor popularity was classified as not popular.
We found that karma-less-preprocessor 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.