Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
{
use: isProd
? ExtractTextPlugin.extract({use: [cssLoader, postcssLoader]})
: [resolve('style-loader'), cssLoader, postcssLoader]
}
]
},
{
test: /\.(jpe?g|png|gif|svg|webp|woff|woff2|ttf|eot|otf)$/,
use: {
loader: resolve('file-loader'),
options: {name: 'assets/[name]-[hash].[ext]'}
}
},
webpackIntegration.getPartLoader(wpIntegrationOptions)
]
},
profile: config.profile || false,
plugins: [
webpackIntegration.getEnvPlugin(wpIntegrationOptions),
new webpack.ContextReplacementPlugin(/moment[/\\]locale$/, /en|nb/),
webpackIntegration.getPartResolverPlugin(wpIntegrationOptions),
cssExtractor,
commonChunkPlugin
].filter(Boolean)
}
}