Explorar el Código

fix a bug when build:prod

utsushiiro hace 7 años
padre
commit
9acf4217c8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      config/webpack.common.js

+ 1 - 1
config/webpack.common.js

@@ -58,7 +58,7 @@ module.exports = (options) => {
     },
     resolve: {
       extensions: ['.js', '.jsx', '.json'],
-      modules: options.resolve.modules.concat([helpers.root('node_modules')]),
+      modules: ((options.resolve && options.resolve.modules) || []).concat([helpers.root('node_modules')]),
       alias: {
         '@root': helpers.root('/'),
         '@commons': helpers.root('src/lib'),