Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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 810B

1234567891011121314151617181920212223242526272829303132333435
  1. require("babel-polyfill");
  2. const webpack = require('webpack')
  3. const path = require('path')
  4. module.exports = {
  5. mode: 'production',
  6. target: "web",
  7. context: path.join(__dirname, './digest-fetch-src.js'),
  8. entry: [
  9. "babel-polyfill",
  10. path.join(__dirname, './digest-fetch-src.js')
  11. ],
  12. output: {
  13. path: path.join(__dirname, '.'),
  14. filename: 'digest-fetch.js',
  15. globalObject: 'this'
  16. },
  17. module: {
  18. rules: [
  19. {
  20. test : /\.js$/,
  21. exclude : /(node_modules|build|dist\/)/,
  22. loader : 'babel-loader',
  23. query : { presets: ["@babel/preset-env"] }
  24. }
  25. ]
  26. },
  27. resolve: {
  28. extensions: ['.webpack-loader.js', '.web-loader.js', '.loader.js', '.js'],
  29. modules: [
  30. path.join(__dirname, './node_modules'),
  31. __dirname,
  32. ],
  33. }
  34. };