How to use the webpack-atoms.plugins.hotModuleReplacement function in webpack-atoms

To help you get started, we’ve selected a few webpack-atoms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jquense / react-widgets / packages / storybook / webpack.config.js View on Github external
'react-widgets-virtualized$': path.resolve(
          '../virtualized/src/index.js'
        ),
        'react-widgets-virtualized/lib': path.resolve('../virtualized/src'),

        'react-widgets-material-ui$': path.resolve(
          '../material-ui/src/index.js'
        ),
        'react-widgets-material-ui/lib': path.resolve('../material-ui/src'),
      },
    },
    plugins: [
      plugins.define(),
      plugins.extractText({ disable: true }),
      plugins.hotModuleReplacement(),
      ...baseConfig.plugins,
    ],
    node: {
      Buffer: false,
      fs: 'empty',
      net: 'empty',
      tls: 'empty',
    },
  })