Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cache: !DEBUG,
mode: 'development',
devtool: DEBUG ? 'cheap-module-source-map': 'none',
externals: {
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext': true,
'react/addons': true,
// The karma mocha plugin exposes a mocha instance as `window.mocha`,
// but the mocha npm package exports the mocha contructor function.
// The choma script needs access to the mocha constructor so it can
// monkey-patch it for random test ordering.
'mocha': 'mocha.constructor'
},
resolveLoader: {
alias: {
...baseWebpackConfig.resolveLoader.alias,
'ui-tests-loader': path.join(__dirname, './loaders/ui-tests-loader')
}
}
},
webpackMiddleware: { stats: 'errors-only' },
// TODO: pull breakpoints from theme
viewport: {
breakpoints: [
{
name: 'small',
size: {
width: 320,
height: 480
}