Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const { rules, loaders, plugins, stats } = require('webpack-atoms')
const browsers = ['last 2 versions', 'ie >= 10', 'not android <= 4.4.3']
module.exports = {
devtool: 'source-map',
entry: path.join(__dirname, '../examples/App.js'),
output: {
path: path.join(__dirname, '../examples/'),
filename: 'bundle.js',
publicPath: '/examples',
},
stats: stats.minimal,
devServer: {
port: 3000,
stats: stats.minimal,
},
resolve: {
alias: {
'react-big-calendar$': path.resolve(__dirname + '/../src/index.js'),
'react-big-calendar/lib': path.resolve(__dirname, '../src'),
},
},
module: {
rules: [
rules.js({}),
rules.images(),
rules.fonts(),
{ oneOf: [rules.css.modules(), rules.css()] },
rules.sass({ browsers }),
{
const path = require('path')
const { rules, loaders, plugins, stats } = require('webpack-atoms')
const browsers = ['last 2 versions', 'ie >= 10', 'not android <= 4.4.3']
module.exports = {
devtool: 'source-map',
entry: path.join(__dirname, '../examples/App.js'),
output: {
path: path.join(__dirname, '../examples/'),
filename: 'bundle.js',
publicPath: '/examples',
},
stats: stats.minimal,
devServer: {
port: 3000,
stats: stats.minimal,
},
resolve: {
alias: {
'react-big-calendar$': path.resolve(__dirname + '/../src/index.js'),
'react-big-calendar/lib': path.resolve(__dirname, '../src'),
},
},
module: {
rules: [
rules.js({}),
rules.images(),
rules.fonts(),