Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = function(root, config) {
return merge({}, config, {
module: {
rules: [
{ parser: { amd: false } },
rules.js({ tagName: 'less', extension: '.less' }),
rules.css(),
rules.less(),
rules.images(),
rules.woff(),
],
},
plugins: [
plugins.define(),
plugins.extractText(),
],
node: {
Buffer: false,
fs: 'empty',
net: 'empty',
tls: 'empty',
},
})
}
'react-widgets/lib': path.resolve('../react-widgets/src'),
'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',
},
})
module: {
rules: [rules.js(), rules.css()],
},
resolve: {
alias: {
'react-dom-lite$': `${__dirname}/lib/react-dom-lite.js`,
},
},
plugins: [
plugins.html({
template: `${__dirname}/examples/index.html`,
}),
plugins.define({
__SVG__: false,
}),
plugins.extractText(),
new CompressionPlugin(),
],
};