mirror of https://github.com/boxyhq/jackson.git
Enable server sourcemaps (#2242)
* add sourcemaps for server code * leave dev config alone
This commit is contained in:
parent
26533d72ec
commit
47a12d269f
|
@ -8,7 +8,12 @@ module.exports = {
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
i18n,
|
i18n,
|
||||||
output: 'standalone',
|
output: 'standalone',
|
||||||
webpack: (config, { webpack, isServer }) => {
|
webpack: (config, { dev, webpack, isServer }) => {
|
||||||
|
// Enable source maps in development mode and for server-side rendering
|
||||||
|
if (!dev && isServer) {
|
||||||
|
config.devtool = 'source-map';
|
||||||
|
}
|
||||||
|
|
||||||
if (isServer) {
|
if (isServer) {
|
||||||
// Module not found
|
// Module not found
|
||||||
config.plugins.push(
|
config.plugins.push(
|
||||||
|
|
Loading…
Reference in New Issue