New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

browserify-lessify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-lessify - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

example/gulpfile.js

@@ -15,3 +15,4 @@ /**

}).transform(less,{
output:path.resolve(__dirname,'../dist')
output:path.resolve(__dirname,'../dist'),
autoprefixer:true
}).bundle()

@@ -18,0 +19,0 @@ .pipe(source(name))

@@ -23,2 +23,17 @@ /**

let createFile = (css)=>{
if(opts.autoprefixer){
const postcss = require('postcss');
const autoprefixer = require('autoprefixer');
postcss([autoprefixer]).process(css).then(result=>{
fs.writeFileSync(path.resolve(opts.output,filename),result.css)
})
}
else{
fs.writeFileSync(path.resolve(opts.output,filename),css)
}
}
less.render(input, lessOpts, function(err, output) {

@@ -28,3 +43,4 @@ if (err) {

} else {
fs.writeFileSync(path.resolve(opts.output,filename),output.css)
//
createFile(output.css);
}

@@ -31,0 +47,0 @@

{
"name": "browserify-lessify",
"version": "1.0.0",
"version": "1.0.1",
"description": "a browserify transform",

@@ -24,3 +24,5 @@ "main": "index.js",

"dependencies": {
"autoprefixer": "^6.7.7",
"less": "^2.7.2",
"postcss": "^5.2.17",
"through": "^2.3.8"

@@ -27,0 +29,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc