1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-hashed-statics/next.config.js
Giovanni Giordano 0fa642aacf Update with-hashed-statics example (#5100)
* Add file-loader to webpack config

* Fix lint problems
2018-09-05 15:16:05 +02:00

20 lines
347 B
JavaScript

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
}
}