How to use the react-scrollbars-custom/package.version function in react-scrollbars-custom

To help you get started, we’ve selected a few react-scrollbars-custom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xobotyi / react-scrollbars-custom / webpack.config.js View on Github external
parallel: true
      })
    ],
    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: {