Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
noEmitOnErrors: true
},
devServer: {
contentBase: __dirname,
disableHostCheck: true,
port: 3030
},
plugins: [
new MiniCssExtractPlugin({
filename: "[name].[contenthash].css"
}),
new webpack.DefinePlugin({
RSC_VERSION: JSON.stringify(RSC_PACKAGE.version),
RSC_NAME: JSON.stringify(RSC_PACKAGE.name),
RSC_HOMEPAGE: JSON.stringify(RSC_PACKAGE.homepage),
RSC_AUTHOR: JSON.stringify(RSC_PACKAGE.author)
}),
new HtmlWebpackPlugin({
template: path.join(__dirname, "src", "index.html"),
excludeAssets: [/css.*.js/]
}),
new HtmlWebpackExcludeAssetsPlugin()
],
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
comments: true,