browserify-css
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -1,4 +0,3 @@ | ||
// | ||
'use strict'; | ||
// For more information about browser field, check out the browser field at https://github.com/substack/browserify-handbook#browser-field. | ||
// | ||
@@ -5,0 +4,0 @@ module.exports = { |
@@ -9,5 +9,5 @@ module.exports = { | ||
// Bitwise operators are very rare in JavaScript programs and quite often & is simply a mistyped &&. | ||
bitwise: false, | ||
bitwise: true, | ||
// This option allows you to force all variable names to use either camelCase style or UPPER_CASE with underscores. | ||
camelcase: false, | ||
camelcase: true, | ||
// This option requires you to always put curly braces around blocks in loops and conditionals. | ||
@@ -20,3 +20,3 @@ curly: true, | ||
// This option requires all for in loops to filter object's items. | ||
forin: false, | ||
forin: true, | ||
// This option prohibits the use of immediate function invocations without wrapping them in parentheses. | ||
@@ -33,7 +33,7 @@ immed: true, | ||
// This option warns when you have an empty block in your code. | ||
noempty: false, | ||
noempty: true, | ||
// This option prohibits the use of constructor functions for side-effects. | ||
nonew: true, | ||
// This option prohibits the use of unary increment and decrement operators. | ||
plusplus: false, | ||
plusplus: true, | ||
// This option enforces the consistency of quotation marks used throughout your code. | ||
@@ -44,7 +44,7 @@ quotmark: true, | ||
// This option warns when you define and never use your variables. | ||
unused: false, | ||
unused: true, | ||
// This option requires all functions to run in ECMAScript 5's strict mode. | ||
strict: false, | ||
strict: true, | ||
// This option makes it an error to leave a trailing whitespace in your code. | ||
trailing: false, | ||
trailing: true, | ||
@@ -118,5 +118,4 @@ /** | ||
require: true, | ||
requirejs: true, | ||
Buffer: true | ||
JSON: true | ||
} | ||
}; |
@@ -119,3 +119,3 @@ 'use strict'; | ||
var css = css.stringify({ | ||
var cssText = css.stringify({ | ||
stylesheet: { | ||
@@ -125,3 +125,3 @@ rules: [ rule ] | ||
}); | ||
cssStream.write(css + '\n'); | ||
cssStream.write(cssText + '\n'); | ||
} | ||
@@ -147,3 +147,3 @@ }); | ||
if (typeof callback !== 'function') { | ||
callback = function noop(data) { }; | ||
callback = function noop() {}; | ||
} | ||
@@ -150,0 +150,0 @@ |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
require('./app.css'); | ||
@@ -2,0 +4,0 @@ var foo = require('./modules/foo'); |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = { | ||
@@ -2,0 +4,0 @@ init: function() { |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
module.exports = { | ||
@@ -2,0 +4,0 @@ init: function() { |
@@ -39,5 +39,3 @@ 'use strict'; | ||
var cssBuffer = {}; | ||
var buffer = ''; | ||
var externalURLs = []; | ||
@@ -44,0 +42,0 @@ options = _.extend({}, options, opts); |
{ | ||
"name": "browserify-css", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "A Browserify transform for bundling, rebasing, inlining, and minifying CSS files", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -1,2 +0,2 @@ | ||
# browserify-css [](https://travis-ci.org/cheton/browserify-css) | ||
# browserify-css [](https://travis-ci.org/cheton/browserify-css) | ||
@@ -3,0 +3,0 @@ [](https://nodei.co/npm/browserify-css/) |
5
25501
19
477