Digital Rights Management für elektronische Patientenakten
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

webpack.config.js 860B

3 years ago
123456789101112131415161718192021222324252627282930
  1. const webpack = require('webpack');
  2. module.exports = {
  3. resolve:{fallback: { "crypto": require.resolve("crypto-browserify"),
  4. "stream": require.resolve("stream-browserify"),
  5. "buffer": require.resolve("buffer-browserify"),
  6. "path": require.resolve("path-browserify"),
  7. "assert": require.resolve("assert/")}},
  8. module: {
  9. rules: [
  10. {
  11. test: /\.js$/,
  12. exclude: /node_modules/,
  13. use: {
  14. loader: "babel-loader",
  15. options: {
  16. presets: ["@babel/preset-env", "@babel/preset-react"],
  17. }
  18. }
  19. }
  20. ]
  21. },
  22. plugins: [
  23. new webpack.ProvidePlugin({
  24. process: 'process/browser',
  25. 'process.env.POUCHDB_NAME': JSON.stringify(process.env.POUCHDB_NAME || 'mydb'),
  26. })
  27. ],
  28. }