Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
loader: 'css-loader',
options: {
importLoaders: 1,
modules: true
}
},
{
loader: 'sass-loader'
}
]
}
]
},
resolve: {
modules: [
join(process.cwd(), constants.src.directory),
join(process.cwd(), 'node_modules'),
resolve(process.cwd(), '..', '..', 'node_modules'), // Lerna monorepo
process.cwd(),
'node_modules'
],
extensions: ['.js', '.json']
},
devtool: isDevelopment ? 'inline-cheap-module-source-map' : 'none',
stats: 'errors-only',
plugins: [
new webpack.EnvironmentPlugin({
NODE_ENV: mode
})
],
optimization: {
minimizer: [