b2a9918165
* improve production error message printing * update test cases * add test case * improve printing of build errors * improve types * fix test cases
26 lines
534 B
JavaScript
26 lines
534 B
JavaScript
module.exports = {
|
|
onDemandEntries: {
|
|
// Make sure entries are not getting disposed.
|
|
maxInactiveAge: 1000 * 60 * 60,
|
|
},
|
|
poweredByHeader: false,
|
|
cssModules: true,
|
|
serverRuntimeConfig: {
|
|
mySecret: 'secret',
|
|
},
|
|
publicRuntimeConfig: {
|
|
staticFolder: '/static',
|
|
},
|
|
env: {
|
|
customVar: 'hello',
|
|
},
|
|
webpack(config, { buildId, webpack }) {
|
|
config.plugins.push(
|
|
new webpack.DefinePlugin({
|
|
'process.env.CONFIG_BUILD_ID': JSON.stringify(buildId),
|
|
})
|
|
)
|
|
|
|
return config
|
|
},
|
|
}
|