rsnext/examples/with-hashed-statics/next.config.js

20 lines
393 B
JavaScript

module.exports = {
webpack: config => {
config.module.rules.push({
test: /\.(txt|jpg|png|svg)$/,
use: [
{
loader: 'file-loader',
options: {
context: '',
outputPath: 'static',
publicPath: '_next/static',
name: '[path][name].[hash].[ext]'
}
}
]
})
return config
}
}