fixed example
This commit is contained in:
parent
9fe83b3dc8
commit
8127fbf328
|
@ -0,0 +1,7 @@
|
|||
module.exports = {
|
||||
module: {
|
||||
loaders: [
|
||||
{ test: /\.json$/, loader: "json" }
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"));
|
||||
|
||||
|
|
|
@ -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' }
|
||||
|
|
Loading…
Reference in New Issue