mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Used here: https://github.com/webpack-contrib/sass-loader/blob/master/src/utils.js#L694
23 lines
365 B
JavaScript
23 lines
365 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const nextConfig = {
|
|
turbopack: {
|
|
rules: {
|
|
'*.txt': {
|
|
loaders: ['./test-file-loader.js'],
|
|
as: '*.js',
|
|
},
|
|
},
|
|
},
|
|
webpack(config) {
|
|
config.module.rules.push({
|
|
test: /\.txt/,
|
|
use: './test-file-loader.js',
|
|
})
|
|
return config
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|