Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module: {
rules: [
{
test: /\.css$/,
use: [...cssStyleLoaders],
exclude: [publicSrcPath],
},
{
test: isSassAsset,
use: [...cssStyleLoaders, 'sass-loader'],
exclude: [publicSrcPath],
},
],
},
plugins: [...kytWebpackPlugins(options), new webpack.HotModuleReplacementPlugin()],
};
};
use: [
...cssStyleLoaders,
{
loader: 'sass-loader',
options: {
sourceMap: true,
},
},
],
exclude: [publicSrcPath],
},
],
},
plugins: [
...kytWebpackPlugins(options),
new MiniCssExtractPlugin({
filename: '[name]-[contenthash].css',
chunkFilename: '[name]-[contenthash].css',
}),
new OptimizeCSSAssetsPlugin({}),
],
optimization: {
moduleIds: 'hashed',
runtimeChunk: {
name: entrypoint => `runtime~${entrypoint.name}`,
},
splitChunks: {
cacheGroups: {