Przeglądaj źródła

Hide deprecation warning from `yarn start\build`

Note, this does not affect `yarn install`.
Sergiu Miclea 8 lat temu
rodzic
commit
b06bb842fe
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      webpack.config.js

+ 1 - 0
webpack.config.js

@@ -27,6 +27,7 @@ const sourceDir = 'src'
 const publicPath = `/${process.env.PUBLIC_PATH || ''}/`.replace('//', '/')
 const sourcePath = path.join(process.cwd(), sourceDir)
 const outputPath = path.join(process.cwd(), 'dist')
+process.noDeprecation = true
 
 const babel = () => () => ({
   module: {