Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #235 from taion/webpack
Use cacheable loaders in webpack
  • Loading branch information
cristiandouce committed Oct 7, 2015
2 parents 5b959ef + eadf620 commit 259de39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -77,9 +77,9 @@ If you are using webpack, you will need the following loaders:
[
{
test: /node_modules\/auth0-lock\/.*\.js$/,
loaders: 'transform?brfs!transform?packageify'
loaders: 'transform/cacheable?brfs!transform/cacheable?packageify'
},
{test: /\.ejs$/, loader: 'transform?ejsify'},
{test: /\.ejs$/, loader: 'ejs-compiled'},
{test: /\.json$/, loader: 'json'}
]
```
Expand Down
2 changes: 1 addition & 1 deletion examples/webpack/package.json
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"auth0-lock": "^7.5.5",
"brfs": "^1.4.0",
"ejsify": "^1.0.0",
"ejs-compiled-loader": "^2.0.4",
"jquery": "^2.1.4",
"json-loader": "^0.5.2",
"packageify": "^0.2.2",
Expand Down
5 changes: 2 additions & 3 deletions examples/webpack/webpack.config.js
Expand Up @@ -11,11 +11,10 @@ var config = {
module: {
loaders: [{
test: /node_modules\/auth0-lock\/.*\.js$/,
loaders: ['transform?brfs', 'transform?packageify']
loaders: ['transform/cacheable?brfs', 'transform/cacheable?packageify']
}, {
// ejs-compiled-loader will not work per bazilio91/ejs-compiled-loader#6.
test: /\.ejs$/,
loader: 'transform?ejsify'
loader: 'ejs-compiled',
}, {
test: /\.json$/,
loader: 'json'
Expand Down

0 comments on commit 259de39

Please sign in to comment.