jade-loader
Advanced tools
Comparing version
@@ -37,3 +37,3 @@ /* | ||
function getFileContent(context, request) { | ||
request = /^~/.test(request) ? request.substr(1) : "./" + request; | ||
request = loaderUtils.urlToRequest(request, query.root) | ||
var baseRequest = request; | ||
@@ -51,2 +51,3 @@ var filePath = filePaths[context + " " + request]; | ||
}); | ||
return; | ||
} | ||
@@ -90,2 +91,7 @@ | ||
MyParser.prototype.parseCall = function() { | ||
this._mustBeInlined = true; | ||
return jade.Parser.prototype.parseCall.call(this); | ||
}; | ||
MyParser.prototype.parseExtends = function() { | ||
@@ -179,2 +185,1 @@ if(!callback) callback = loaderContext.async(); | ||
} | ||
module.exports.seperable = true; |
{ | ||
"name": "jade-loader", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"author": "Tobias Koppers @sokra", | ||
"description": "jade loader module for webpack", | ||
"dependencies": { | ||
"loader-utils": "0.2.x" | ||
"loader-utils": "~0.2.5" | ||
}, | ||
"peerDependencies": { | ||
"jade": "1.2.x" | ||
"jade": "^1.7.0" | ||
}, | ||
@@ -19,2 +19,6 @@ "devDependencies": { | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/webpack/jade-loader.git" | ||
}, | ||
"licenses": [ | ||
@@ -26,2 +30,2 @@ { | ||
] | ||
} | ||
} |
@@ -10,7 +10,17 @@ # jade loader for webpack | ||
Don't forget to polyfill `require` if you want to use it in node. | ||
See `webpack` documentation. | ||
[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html) | ||
### Embedded resources | ||
Try to use `require` for all your embedded resources, to process them with webpack. | ||
``` jade | ||
div | ||
img(src=require("./my/image.png")) | ||
``` | ||
You need to configure loaders for these filetypes too. (Take a look at the [file-loader](https://github.com/webpack/file-loader).) | ||
## License | ||
MIT (http://www.opensource.org/licenses/mit-license.php) | ||
MIT (http://www.opensource.org/licenses/mit-license.php) |
@@ -21,3 +21,5 @@ var should = require("should"); | ||
result.should.not.match(/"b"/); | ||
result.should.match(/"c"/); | ||
result.should.match(/jade_mixins\["test"\]/); | ||
result.should.match(/jade_mixins\["teest"\]/); | ||
@@ -24,0 +26,0 @@ done(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
8343
8.2%12
9.09%209
3.47%26
73.33%2
-33.33%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated