Skip to content

Commit

Permalink
Update with-hashed-statics example (#5100)
Browse files Browse the repository at this point in the history
* Add file-loader to webpack config

* Fix lint problems
  • Loading branch information
giovannigiordano authored and timneutkens committed Sep 5, 2018
1 parent 0bcee3c commit 0fa642a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 13 deletions.
13 changes: 0 additions & 13 deletions examples/with-hashed-statics/.babelrc

This file was deleted.

19 changes: 19 additions & 0 deletions examples/with-hashed-statics/next.config.js
@@ -0,0 +1,19 @@
module.exports = {
webpack: config => {
config.module.rules.push({
test: /\.(txt|jpg|png|svg)$/,
use: [
{
loader: 'file-loader',
options: {
context: '',
emitFile: true,
name: '[path][name].[hash].[ext]'
}
}
]
})

return config
}
}
3 changes: 3 additions & 0 deletions examples/with-hashed-statics/package.json
Expand Up @@ -9,5 +9,8 @@
"next": "latest",
"react": "16.2.0",
"react-dom": "16.2.0"
},
"devDependencies": {
"file-loader": "2.0.0"
}
}

0 comments on commit 0fa642a

Please sign in to comment.