UNPKG

@enonic/react4xp

Version:
27 lines (22 loc) 1.51 kB
//────────────────────────────────────────────────────────────────────────────── // Use this file to adjust the webpack config. //────────────────────────────────────────────────────────────────────────────── // A template version of this, with upated properties and explanations, // can always be found in the react4xp NPM package: // node_modules/react4xp/examples/webpack.config.react4xp.js after installing, // or: // https://github.com/enonic/enonic-react4xp/blob/master/examples/webpack.config.react4xp.js //────────────────────────────────────────────────────────────────────────────── module.exports = function(env, config) { // Comment in and customize the lines below to improve incremental builds in // development mode. (see https://webpack.js.org/configuration/cache/) // // if (process.env.NODE_ENV === 'development') { // config.cache = { // type: 'filesystem' // } // } // Makes symlinks under node_modules work, e.g. 'npm link' and possibly PNPM etc: config.resolve.symlinks = true; return config; };