mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What? * Allow to apply webpack loaders depending on "conditions". * add a few next specific conditions depending on context type ### Why? Some loaders need different behavior depending on context ### How? Closes PACK-2748
5 lines
123 B
JavaScript
5 lines
123 B
JavaScript
module.exports = function () {
|
|
const options = this.getOptions()
|
|
return `export default ${JSON.stringify(options)};`
|
|
}
|