fixed example

This commit is contained in:
Tobias Koppers 2013-02-24 02:25:25 +01:00
parent 9fe83b3dc8
commit 8127fbf328
3 changed files with 8 additions and 4 deletions

View File

@ -0,0 +1,7 @@
module.exports = {
module: {
loaders: [
{ test: /\.json$/, loader: "json" }
]
}
}

View File

@ -1,6 +1,3 @@
// Polyfill require for node.js usage of loaders
require = require("enhanced-require")(module);
// use our loader
console.dir(require("./loader!./file"));

View File

@ -30,7 +30,7 @@
# Console output
Prints in node.js (`node example.js`) and in browser:
Prints in node.js (`enhanced-require example.js`) and in browser:
```
{ answer: 42, foo: 'bar' }