Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
devtool: 'module-source-map',
entry: './examples/App.js',
output: {
path: `${__dirname}/build`,
filename: 'bundle.js',
},
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(),
],
};
},
module: {
rules: [
rules.js({}),
rules.images(),
rules.fonts(),
{ oneOf: [rules.css.modules(), rules.css()] },
rules.sass({ browsers }),
{
test: /\.md/,
use: [loaders.js(), 'markdown-jsx-loader'],
},
],
},
plugins: [
plugins.html({ title: 'React Big Calendar' }),
plugins.extractCss(),
],
}